Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagnostic settings API outdated #15992

Open
verschaevesiebe opened this issue Jan 3, 2025 · 0 comments
Open

Diagnostic settings API outdated #15992

verschaevesiebe opened this issue Jan 3, 2025 · 0 comments

Comments

@verschaevesiebe
Copy link

Bicep version
0.32.4

Describe the bug
Microsoft.Insights/diagnosticSettings@2021-05-01-preview still only has an older version available.
It's the only resource triggering the "Use a more recent API version for 'Microsoft.Insights/diagnosticSettings' '2021-05-01-preview' is 1343 days old. (should be no more than 730 days)

To Reproduce
Create a Microsoft.Insights/diagnosticSettings@2021-05-01-preview resource and enable all bicepconfig settings.

Additional context
Can someone give me more context on how resources are "managed" ? I assume that every resource get's it's own API updates. Is there a way to find all schemas for each api version somewhere ? Usually the documentation covers the latest versions (E.g some resources have 20 versions, what are the clear differences ?)

I've added the #disable-next-line use-recent-api-versions to ignore it but it still feels hacky.

Another question i have is why diagnostic settings are treaded like a provider on top of most resources instead of beign a child resource of the specific resource itself. E.g API Management.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant