last sync: 2025-May-30 17:23:33 UTC

Enable logging by category group for Notification Hubs namespaces (microsoft.notificationhubs/namespaces) to Log Analytics

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 65f86cc7-f01e-4c42-967c-e5014709f2c5 (1.0.0) to Azure
Display name Enable logging by category group for Notification Hubs namespaces (microsoft.notificationhubs/namespaces) to Log Analytics
Id 65f86cc7-f01e-4c42-967c-e5014709f2c5
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
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 Log Analytics workspace for Notification Hubs namespaces (microsoft.notificationhubs/namespaces).
Mode Indexed
Type Custom Community
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 Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs[*] microsoft.insights diagnosticSettings properties.logs[*] True False
microsoft.insights/diagnosticSettings/logs[*].categoryGroup microsoft.insights diagnosticSettings properties.logs[*].categoryGroup True False
Microsoft.Insights/diagnosticSettings/logs[*].enabled microsoft.insights diagnosticSettings properties.logs[*].enabled True False
Microsoft.Insights/diagnosticSettings/workspaceId microsoft.insights diagnosticSettings properties.workspaceId True False
Rule resource types IF (1)
Microsoft.notificationhubs/namespaces
JSON
EPAC
Deploy policy 65f86cc7-f01e-4c42-967c-e5014709f2c5 (1.0.0) to Azure