:mega: We've <released a preview> of the Pulumi Az...
# azure
r
šŸ“£ We've released a preview of the Pulumi Azure Native Provider v2. Please feel free to take it for a spin and provide feedback to me directly and/or by opening an issue. Here's the epic for tracking. Thanks!
i
Looks like it doesnā€™t like DiagnosticSetting:
The type or namespace name 'DiagnosticSetting' does not exist in the namespace 'Pulumi.AzureNative.Insights'
Are there updated docs for 2.0?
Got this error on:
Copy code
<PackageReference Include="Pulumi" Version="3.55.0" />
    <PackageReference Include="Pulumi.AzureNative" Version="2.0.0-alpha.1" />
works fine on:
Copy code
<PackageReference Include="Pulumi" Version="3.55.0" />
    <PackageReference Include="Pulumi.AzureNative" Version="1.102.0" />
r
Thanks @icy-doctor-13719! We are currently working on making the docs available during the pre-release phase. As a temporary solution, we have the exported schema here to browse through. I am looking into the resource you mentioned right now.
I opened https://github.com/pulumi/pulumi-azure-native/issues/2477. Feel free to add more details.
šŸ“£ Azure Native v2 Preview Update: The v2 preview docs are available here and the migration guide is coming soon! Please take the latest release for a spin and I would love to receive feedback directly and/or by opening an issue.
a
Hi @rough-morning-53309, nice to see the v2 preview. Do you have an ETA for the migration guide? We are almost done with our refactoring with the v1 azure native api (we had a lot of non azure native stuff running...) and wondering if the azure native v1 and v2 are compatible or we need to recreate some of our resources (like aks) which would be a pain. Thanks šŸ™‚
r
ETA for the migration guide is 1-2 days. Yes, there is compatibility where you would like to keep a specific ARM version of a resource. Take a look at this discussion:
To continue to use the same resource version as from version 1 of the provider package you will need to update your import statements as follows:
Check which ā€œAPI Versionā€ of the resource you are using in V1:
1. Read the inline code documentation for the resource
2. Find the resource in the Azure Native registry API Docs
3. Refer to the v1.json version file
Next, update your import to point to the specific older version. For example, to import the explicit version of the EventGrid EventSubscription resource
Happy to answer questions as well in the mean time!
a
Hey @rough-morning-53309, thanks for the pointer. Sounds not as bad as i though at first šŸ™ˆ
r
FYI @icy-doctor-13719 Your issue has been resolved by https://github.com/pulumi/pulumi-azure-native/pull/2503
i
thanks! iā€™ll give it a shot šŸ™‚