pulumi-azure-native: Version 3 is completely missing the capability to create DiagnosticSettings for resources

What happened?

Hi,

in the previous versions, this was supported via resource type azure_native.insights.DiagnosticSetting , which however no longer exist, because it is not present in any of the stable versions of the Azure API specs.

Example

That being said, DiagnosticSettings is a thing that exists, is not planned to be deprecated and is actually quite an important part of the Azure ecosystem, without which you can’t for example send infrastucture level logs to a Log Analytic workspace for analysis and alerting purposes, thus severly limiting your infrastructure monitoring options. Please see the official documentation: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings

FYI, the Azure Portal itself uses the API version 2021-05-01-preview to manage the DiagnosticSettings.

Output of pulumi about

CLI Version 3.154.0 Go Version go1.23.7 Go Compiler gc

Host OS Microsoft Windows 11 Enterprise Version 10.0.22631 Build 22631 Arch x86_64

Additional context

If I understand correctly, our current options are:

  • Stay on the version 2.90.0 (current state, but not feasible in the long term)
  • Implement our own DynamicProvider (which is not really a first class citizen in Pulumi and thus brings many issues that I wouldn’t want to sidetrack to)
  • Implement it via AZ CLI local commands (which has similar issues as the DynamicProvider)

Is there another option that I’m missing? Can you please reconsider and put it back?

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already).

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 6
  • Comments: 15 (7 by maintainers)

Most upvoted comments

We just released version v3.0.1 which brings back

  • monitor.AutoscaleSetting
  • monitor.DiagnosticSetting
  • monitor.ManagementGroupDiagnosticSetting
  • monitor.SubscriptionDiagnosticSetting

It was never our intention to drop resources altogether. We’ll take a deeper look at why that happened here.

FWIW, this surprises me too. I’d expect us to include all resource types at the latest version available. In this case, it sounds like the latest is 2021-05-01-preview. Of course if/when a newer, and/or more stable API is available, we would roll forward to that. But I don’t think we should just be omitting entire important types. We will discuss and get back with a plan shortly.

MetricAlert and ActivityLogAlert will be re-added today. That will restore all missing Insights resources. Apologies again for the trouble.

@thomas11 Any chance of restoring DataCollectionRule as well?

#4079

on it!