VSCode completions not working for Azure Monitor
Opening per Marcin's suggestion. Investigate which Azure Monitor types maybe missing Schemas. The types tab-complete in Bicep. Link to REDDIT thread: https://www.reddit.com/r/AZURE/comments/lbk9rj/arm_templates_v_20_aka_project_bicep/gnbzunm?utm_source=share&utm_medium=web2x&context=3
Closing. Anthony added more context here, but it works well in bicep using the scope property. Here is his response:
Keep all the great feedback coming! I wanted to address the point about missing types for Microsoft.Insights/diagnosticSettings first, and will follow back later on the other points you have raised.
None of the myriad diagnostic settings types have schemas (and hence tab-complete or validation). E.g.: "Microsoft.Web/sites/providers/diagnosticSettings".
Microsoft.Insights/diagnosticSettings is an unusual case - it's being used here as an extension resource on a resource of type Microsoft.Web/sites. We added support for the support "scope" for a simpler and more idiomatic way to deploy extension resources in an ARM template (see this document for the syntax). We actually have schemas available for Microsoft.Insights/diagnosticSettings and other extension resource types, but they aren't being included in the selection list, which is why this doesn't work today. I have created https://github.com/Azure/azure-resource-manager-schemas/issues/1547 to track a fix for that.
Note that Bicep does already understand the concept of scope, so we do have type information available for Microsoft.Insights/diagnosticSettings - see docs/examples/201/log-analytics-with-solutions-and-diagnostics/main.bicep for an example.
--
And here is the schema issue: https://github.com/Azure/azure-resource-manager-schemas/issues/1547