last sync: 2025-Mar-14 18:30:15 UTC

[Deprecated]: Deploy Diagnostic Settings for App Service to Log Analytics workspace

Azure Landing Zones (ALZ) Policy definition

Source Repository Azure Landing Zones (ALZ) GitHub
JSON Deploy-Diagnostics-Website
Deploy policy Deploy-Diagnostics-Website (1.2.0-deprecated) to Azure
Display name [Deprecated]: Deploy Diagnostic Settings for App Service to Log Analytics workspace
Id Deploy-Diagnostics-Website
Version 1.2.0-deprecated
Details on versioning
Category Monitoring
Description Deploys the diagnostic settings for Web App to stream to a Log Analytics workspace when any Web App which is missing this diagnostic settings is created or updated. This policy is superseded by built-in initiative https://www.azadvertizer.net/azpolicyinitiativesadvertizer/0884adba-2312-4468-abeb-5422caed1038.html.
Cloud environments AzureChinaCloud
AzureCloud
AzureUSGovernment
Mode Indexed
Type Custom Azure Landing Zones (ALZ)
Preview False
Deprecated True
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Log Analytics Contributor 92aaf0da-9dab-42b6-94a3-d43ce8d16293
Rule aliases THEN-ExistenceCondition (3)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs.enabled microsoft.insights diagnosticSettings properties.logs[*].enabled True False
Microsoft.Insights/diagnosticSettings/metrics.enabled microsoft.insights diagnosticSettings properties.metrics[*].enabled True False
Microsoft.Insights/diagnosticSettings/workspaceId microsoft.insights diagnosticSettings properties.workspaceId True False
Rule resource types IF (1)
Microsoft.Web/sites
Initiatives usage
Initiative DisplayName Initiative Id Initiative Category State
[Deprecated]: Deploy Diagnostic Settings to Azure Services Deploy-Diagnostics-LogAnalytics Monitoring Deprecated
History
Date/Time (UTC ymd) (i) Change type Change detail
2024-06-03 17:39:43 change Version remains equal, new suffix: deprecated (1.2.0 > 1.2.0-deprecated)
2023-02-16 16:18:41 change Minor (1.1.0 > 1.2.0)
2022-10-25 25:16:43 change Minor (1.0.0 > 1.1.0)
JSON compare
compare mode: version left: version right:
JSON
EPAC
Deploy policy Deploy-Diagnostics-Website (1.2.0-deprecated) to Azure