Bitzu

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

Single choice

What does an Azure Monitor diagnostic setting do?

  1. Routes selected resource logs and metrics to chosen destinations
  2. Installs a monitoring agent on the resource
  3. Creates an alert when a threshold is crossed
  4. 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.

Select all that apply

Which are valid destinations for a diagnostic setting?

  1. Log Analytics workspace
  2. Azure Storage account
  3. Azure Event Hubs
  4. Azure Boards backlog
  5. 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

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.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module