last sync: 2023-Sep-29 17:58:48 UTC

Azure Policy definition

Enable logging by category group for Virtual network gateways (microsoft.network/virtualnetworkgateways) to Storage

Source Azure Portal
Display name Enable logging by category group for Virtual network gateways (microsoft.network/virtualnetworkgateways) to Storage
Id b4a9c220-1d62-4163-a17b-30db7d5b7278
Version 1.0.0
details on versioning
Category Monitoring
Microsoft docs
Description Resource logs should be enabled to track activities and events that take place on your resources and give you visibility and insights into any changes that occur. This policy deploys a diagnostic setting using a category group to route logs to a Storage Account for Virtual network gateways (microsoft.network/virtualnetworkgateways).
Mode Indexed
Type BuiltIn
Preview False
Deprecated False
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Log Analytics Contributor 92aaf0da-9dab-42b6-94a3-d43ce8d16293
Rule aliases THEN-ExistenceCondition (4)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs[*] microsoft.insights diagnosticSettings properties.logs[*] false
microsoft.insights/diagnosticSettings/logs[*].categoryGroup microsoft.insights diagnosticSettings properties.logs[*].categoryGroup false
Microsoft.Insights/diagnosticSettings/logs[*].enabled microsoft.insights diagnosticSettings properties.logs[*].enabled false
Microsoft.Insights/diagnosticSettings/storageAccountId microsoft.insights diagnosticSettings properties.storageAccountId false
Rule resource types IF (1)
Microsoft.network/virtualnetworkgateways
Compliance Not a Compliance control
Initiatives usage
Initiative DisplayName Initiative Id Initiative Category State Type
Enable audit category group resource logging for supported resources to storage 8d723fb6-6680-45be-9d37-b1a4adb52207 Monitoring GA BuiltIn
History
Date/Time (UTC ymd) (i) Change type Change detail
2023-02-10 18:41:56 add b4a9c220-1d62-4163-a17b-30db7d5b7278
JSON compare n/a
JSON
api-version=2021-06-01