π 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β
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
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 whoseCondition JSON
filters on theΒ ServiceHealthΒ operation and theScope
is set to subscription.Default Valueβ
By default, no monitoring alerts are created.
Referencesβ
- https://learn.microsoft.com/en-us/azure/service-health/overview
- https://learn.microsoft.com/en-us/azure/service-health/alerts-activity-log-service-notifications-portal
- https://azure.microsoft.com/en-gb/pricing/details/monitor/#faq
- https://learn.microsoft.com/en-us/cli/azure/monitor/activity-log/alert
... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Go to
Monitor
.- Click
Alerts
.- Click
+ Create
.- Select
Alert rule
from the drop-down menu.- Choose a subscription.
- Click
Apply
.- Select the
Condition
tab.- Click
See all signals
.- Select
Service health
.- Click
Apply
.- Open the drop-down menu next to
Event types
.- Check the box next to
Select all
.- Select the
Actions
tab.- Click
Select action groups
to select an existing action group, orCreate action group
to create a new action group.- Follow the prompts to choose or create an action group.
- Select the
Details
tab.- Select a
Resource group
, provide anAlert rule name
and an optionalAlert rule description
.- Click
Review + create
.- Click
Create
.- 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β
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ 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 Notification | 26 |