Skip to main content

πŸ“ Azure Subscription Activity Log Alert for Service Health does not exist 🟒

  • Contextual name: πŸ“ Activity Log Alert for Service Health does not exist 🟒
  • ID: /ce/ca/azure/subscription/activity-log-alert-for-service-health
  • Located in: πŸ“ Azure Subscription

Flags​

Our Metadata​

  • Policy Type: COMPLIANCE_POLICY
  • Policy Category:
    • SECURITY

Logic​

Description​

Open File

Description​

Create an activity log alert for Service Health event.

Rationale​

Monitoring for Service Health events provides insight into service issues, planned maintenance, security advisories, and other changes that may affect the Azure services and regions in use.

Impact​

There is no charge for creating activity log alert rules.

Audit​

This policy evaluates Azure Subscriptions for the presence of an Azure Activity Log Alert that captures Service Health events. A subscription is marked asΒ INCOMPLIANTΒ if it does not have an Activity Log Alert whose Condition JSON filters on theΒ ServiceHealthΒ operation and the Scope is set to subscription.

Default Value​

By default, no monitoring alerts are created.

References​

  1. https://learn.microsoft.com/en-us/azure/service-health/overview
  2. https://learn.microsoft.com/en-us/azure/service-health/alerts-activity-log-service-notifications-portal
  3. https://azure.microsoft.com/en-gb/pricing/details/monitor/#faq
  4. https://learn.microsoft.com/en-us/cli/azure/monitor/activity-log/alert

... see more

Remediation​

Open File

Remediation​

From Azure Portal​

  1. Go to Monitor.
  2. Click Alerts.
  3. Click + Create.
  4. Select Alert rule from the drop-down menu.
  5. Choose a subscription.
  6. Click Apply.
  7. Select the Condition tab.
  8. Click See all signals.
  9. Select Service health.
  10. Click Apply.
  11. Open the drop-down menu next to Event types.
  12. Check the box next to Select all.
  13. Select the Actions tab.
  14. Click Select action groups to select an existing action group, or Create action group to create a new action group.
  15. Follow the prompts to choose or create an action group.
  16. Select the Details tab.
  17. Select a Resource group, provide an Alert rule name and an optional Alert rule description.
  18. Click Review + create.
  19. Click Create.
  20. Repeat steps 1-19 for each subscription requiring remediation.

From Azure CLI​

For each subscription requiring remediation, run the following command to create a ServiceHealth alert rule for a subscription:

az monitor activity-log alert create --subscription <subscription-id> --resource-group <resource-group> --name <alert-rule> --condition category=ServiceHealth and properties.incidentType=Incident --scope /subscriptions/<subscription-id> --action-group <action-group>

... [see more](remediation.md)

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlags
πŸ’Ό CIS Azure v4.0.0 β†’ πŸ’Ό 7.1.2.11 Ensure that an Activity Log Alert exists for Service Health (Automated)1
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Alerting and Notification26