Hi guys, Do we have a way to create Workspace-base...
# azure
w
Hi guys, Do we have a way to create Workspace-based Application Insight with AzureNative? I can see that in Azure Classic but can't find a way to do it in Azure Native. I tried with creating Diagnostic settings but it seems it's another thing. Appreciate any help on this. https://www.pulumi.com/registry/packages/azure-native/api-docs/insights/component/
t
Is that Log Analytics Workspace? If not, could you point me to the classic resource?
w
@tall-librarian-49374 yes, it’s log analytic workspace
t
w
@tall-librarian-49374 I think you got me wrong. I mean Workspace-based application insights which is new Application insight mode that work with log analytics workspace. Your example is creating log analytic workspace only. This is example in AzureClassic: https://www.pulumi.com/registry/packages/azure/api-docs/appinsights/insights/#workspace-mode
t
It looks like our default API version (2015-05-01, the last one that was available at 1.0 of the provider) doesn’t support it. You should import a newer version explicitly, e.g. V20200202: https://github.com/pulumi/pulumi-azure-native/blob/master/sdk/dotnet/Insights/V20200202/Component.cs#L196
w
Thank you!
m
@tall-librarian-49374 Hi, I had the same problem as @wooden-lifeguard-41446 and I was wondering why the Azure Provider was targetting API version 2015-05-01 instead of the latest (2020-02-02) which is not in preview anymore. Okay the workaround to specify the newer version explicitly will work fine but that would be better to just use latest GA version. How do you determine which version is the default one? Is there a default version specified by the Azure REST APIs?
t
The problem is that 2020-02-02 was published last July, after the release of 1.0 of the provider. It probably has some breaking changes compared to 2015-05-01 (I’d have to check) so we can’t automatically upgrade the default version until 2.0 of the provider comes out, so that we don’t break existing users. You can read more about versions in https://www.pulumi.com/registry/packages/azure-native/version-guide/
m
Okay thanks for the explanation and for the link I understand better now. Do you know when the provider 2.0 will be released? "The API reference docs describe top-level resources and do not currently show any module-per-version variations." => would be great to have that. I currently use directly the Azure ARM / Bicep documentation.
t
Do you know when the provider 2.0 will be released?
No, I don’t. Somewhere this year but not sure when.
👍 1