Closed smokedlinq closed 3 years ago
Switching the version to 2017-05-01-preview seems to resolve this. Intellisense is giving back the 2020-01-01-preview version which I just selected the most recent.
@anthony-c-martin - I think you answered a similar question yesterday. Looks like in their most recent swagger they changed the valid scopes where this could be deployed. Anthony - did we open an issue in the swagger repo?
Related to #2327. I'm not 100% clear whether this should be a Bicep fix or a swagger fix (or both). Seems like we could do a better job with the error message, and it's also perfectly valid (although perhaps unusual) to only increment the API version for a resource at a particular scope...
it's also perfectly valid (although perhaps unusual) to only increment the API version for a resource at a particular scope...
Good point - should we somehow union all the scopes that are valid for all api versions?
Going to close this and track with #2327. We will reach out to the Diagnostics team to see if this was an intentional change or is a bug.
Bicep version Bicep CLI version 0.3.255 (589f0375df)
Describe the bug Trying to enable diagnosticSettings for the Microsoft.ApiManagement/service, it won't build with a scope set to the APIM resource, error message is:
I've always tried to use a module and the reference scope, so I'm pretty sure it isn't tied to the Microsoft.ApiManagement/service resource specifically but something with the Microsoft.Insights/diagnosticSettings resource type.
To Reproduce
Additional context The full/old way of doing it works but bicep complains about it and suggests to use the scope feature instead.