last sync: 2023-Jun-19 17:45:01 UTC

Community Policy definition

Configure diagnostic settings for storage accounts to Event Hub

Name Configure diagnostic settings for storage accounts to Event Hub
Community-Policy GitHub
Id monitoring_deploy-diagnostic-setting-storage-account-event-hub
Version n/a
details on versioning
Category undefined
Microsoft docs
Description Deploys the diagnostic settings for storage accounts to stream resource logs to an Event Hub when any storage account which is missing this diagnostic settings is created or updated.
Mode Indexed
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, Disabled
Used RBAC Role
Role Name Role Id
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Azure Event Hubs Data Owner f526a384-b230-433a-b45c-95f59c4a2dec
Rule Aliases THEN-ExistenceCondition (3)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/eventHubAuthorizationRuleId microsoft.insights diagnosticSettings properties.eventHubAuthorizationRuleId false
Microsoft.Insights/diagnosticSettings/logs.enabled microsoft.insights diagnosticSettings properties.logs[*].enabled false
Microsoft.Insights/diagnosticSettings/metrics.enabled microsoft.insights diagnosticSettings properties.metrics[*].enabled false
Rule ResourceTypes IF (1)
Microsoft.Storage/storageAccounts
JSON