https://pulumi.com logo
#azure
Title
# azure
r

rough-morning-53309

05/24/2023, 10:53 PM
📣 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

icy-doctor-13719

05/25/2023, 12:34 AM
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

rough-morning-53309

05/25/2023, 7:03 PM
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

adorable-scooter-32619

06/05/2023, 7:18 PM
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

rough-morning-53309

06/05/2023, 7:23 PM
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

adorable-scooter-32619

06/05/2023, 7:30 PM
Hey @rough-morning-53309, thanks for the pointer. Sounds not as bad as i though at first 🙈
r

rough-morning-53309

06/14/2023, 5:27 PM
FYI @icy-doctor-13719 Your issue has been resolved by https://github.com/pulumi/pulumi-azure-native/pull/2503
i

icy-doctor-13719

06/15/2023, 2:44 AM
thanks! i’ll give it a shot 🙂