Diagnostic Settings schema
See original GitHub issueIt doesn’t look like diagnosticSettings is supported in schemas for the available types. I get a warning when I put diagnosticSettings on a resource. It doesn’t seem to be a part of 2017-05-01-preview like the docs suggest.
{
"type": "providers/diagnosticSettings",
"name": "[concat('Microsoft.Insights/', parameters('appserviceName'), 'diagnostics')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites/slots', parameters('appserviceName'), 'Staging')]"
],
"apiVersion": "2017-05-01-preview",
"properties": {
"name": "[concat('Microsoft.Insights/', parameters('appserviceName'), '-staging', 'diagnostics')]",
"workspaceId": "[variables('omsWorkspaceId')]",
"logs": [
{
"category": "FunctionExecutionLogs",
"enabled": true,
"retentionPolicy": {
"days": 30,
"enabled": true
}
}
],
"metrics": [
{
"category": "AllMetrics",
"enabled": true,
"retentionPolicy": {
"enabled": true,
"days": 30
}
}
]
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Common and service-specific schemas for Azure resource logs
Understand the supported services and event schemas for Azure resource logs. ... Azure Analysis Services: Set up diagnostic logging.
Read more >Deploy Diagnostic Settings for Subscription to Log Analytics ...
Deploy Diagnostic Settings for Subscription to Log Analytics workspace - Deploys the diagnostic settings for a Subscription to stream to a ...
Read more >How to handle diagnostic logs from different resources of ...
Azure diagnostics: All data is written to the AzureDiagnostics table. Because multiple resource types send data to the same table, its schema is ......
Read more >Diagnostic Setting captures appropriate categories
Go to Azure Monitor · Click Activity log · Click on Diagnostic settings · Click on Edit Settings for the diagnostic settings entry...
Read more >Enable Azure Resource Diagnostic Settings to Event Hub ...
In this example, we need to set the diagnostics settings to stream ... "$schema": "https://schema.management.azure.com/schemas/2019-04-01/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@reijoh - it’ll require some fairly significant changes to schema generation to support natively in JSON schema, so I’ll have to discuss with the team w.r.t prioritization. You’re right though - the “scope” property which was added since the issue was raised does make this MUCH easier to solve within JSON schema than it would have been back in 2018.
This is a scenario we’re actively trying to provide better validation for in Bicep - for example, here’s your template converted:
Hello @apclouds, @anthony-c-martin, @jorgecotillo! It looks like there is a schemas issue that needs your attention. Please investigate and confirm it is on your end. Thanks 😄
Issue Details
It doesn’t look like diagnosticSettings is supported in schemas for the available types. I get a warning when I put diagnosticSettings on a resource. It doesn’t seem to be a part of 2017-05-01-preview like the docs suggest.
ARM
,RP Fix