https://pulumi.com logo
#python
Title
# python
a

able-thailand-87943

07/25/2023, 5:11 PM
Hello, could someone give me an example how to do an pulumi import using a specific version of the provider? I am looking to import databricks using v20230201.
pulumi import azure-native:databricks.v20230201:Workspace myWorkspace <resourceid>
obviously does not work.
s

stocky-restaurant-98004

07/25/2023, 11:06 PM
The API versions are just namespaces in Azure Native, so I believe you want
databricks:v20230201
instead of
databricks.v20230201
.
a

able-thailand-87943

07/26/2023, 8:32 AM
Hmm, I still get
azure-native🧱v20230201:Workspace (myWorkspace):
error: Preview failed: autorest/azure: Service returned an error. Status=400 Code="MissingApiVersionParameter" Message="The api-version query parameter (?api-version=) is required for all requests."
s

stocky-restaurant-98004

07/27/2023, 1:00 PM
It's possible that you're seeing a bug in the provider. I would file an issue here: https://github.com/pulumi/pulumi-azure-native/issues
a

able-thailand-87943

07/27/2023, 1:01 PM
Thanks @stocky-restaurant-98004 Meanwhile, I do not have the need for an import anymore 🙂
s

stocky-restaurant-98004

07/27/2023, 1:02 PM
I hope that's a good thing! Sorry for the trouble you were having!