How can I set an alert notification in Azure when a web app is stopped?
Q: How can I set an alert notification in Azure when a web app is stopped?
You can set up alert notifications for a stopped Azure Web App by using Azure Monitor to track activity logs or health metrics.
Step 1: Open Azure Monitor Alerts
- Go to the Azure Portal .
- Search for and select Monitor, then click on Alerts.
- Select Create > Alert rule.
Step 2: Define the Scope
- Click Select scope.
- Filter by your subscription and resource group, then select your specific App Service Web App.
- Click Done.
Step 3: Set the Condition (Signal)
- Click Add condition.
- To track manual or unexpected stops, choose the Activity Log signal type and look for an administrative event like Stop Web App (), or choose Metric signals if you are tracking a drop in HTTP availability or health checks.
- Configure the logic threshold as needed, then click Apply.
Step 4: Create an Action Group (Notifications)
- Navigate to the Actions tab or click Create action group.
- Give the group a name and display name.
- Under Actions, select the notification type (such as Email/SMS/Push/Voice) and enter your contact details.
- Click Review + create to save the action group.
Step 5: Finalize and Create
- Go to the Details tab and name your alert rule.
- Select your target resource group and severity level.
- Click Review + create, then select Create.
https://learn.microsoft.com/en-us/azure/spring-apps/basic-standard/monitor-app-lifecycle-events
https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/action-groups
Comments
Post a Comment