AZ-400 ยท Monitoring DevOps environments
How do Azure Monitor and Log Analytics plug into a DevOps workflow?
Log Analytics workspaces, diagnostic settings, Azure Monitor alerts as pipeline gates, linking releases to Application Insights annotations, Azure DevOps and Actions integrations.
Key points
- A Log Analytics workspace stores log data you query with KQL.
- Resource logs reach it only through a diagnostic setting.
- Log alert rules query that data on a schedule, and the alerts can be used to gate or flag a release.
- Azure DevOps service hooks push pipeline events outward to tools like Teams or Slack.
Source: https://learn.microsoft.com/en-us/azure/app-service/monitor-app-service
Practice questions
What does an Azure Monitor diagnostic setting do?
- Routes selected resource logs and metrics to chosen destinations
- Installs a monitoring agent on the resource
- Creates an alert when a threshold is crossed
- Builds a dashboard from the resource's data
Show answer
Answer: A. Routes selected resource logs and metrics to chosen destinations
A diagnostic setting selects log categories and metrics and routes them to destinations such as a Log Analytics workspace. It does not create alerts, deploy agents or build dashboards.
Which are valid destinations for a diagnostic setting?
- Log Analytics workspace
- Azure Storage account
- Azure Event Hubs
- Azure Boards backlog
- Pipeline variable group
Show answer
Answer: A. Log Analytics workspace, B. Azure Storage account, C. Azure Event Hubs
Log Analytics workspaces, storage accounts and event hubs are supported destinations. Azure Boards backlogs and pipeline variable groups are not monitoring destinations.
True or false: resource logs of an Azure resource are stored in Log Analytics automatically, with no configuration.
Show answer
Answer: False
False. Platform metrics are collected automatically, but resource logs are not collected or stored until you create a diagnostic setting that routes them.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
