Lesson213 words

Azure Monitor and Logs with DevOps tools

Configure Azure Monitor and Azure Monitor Logs to integrate with DevOps tools

The two data types

TypeNatureQueried with
MetricsNumeric, time-series, cheap, retained brieflyMetrics explorer
LogsStructured records, rich, retained longerKQL

Alert quickly on metrics; investigate in logs. A design that queries logs for every alert evaluation is slower and more expensive than one that alerts on a metric and uses logs for the follow-up.

Integrating with the pipeline

The valuable connections run in both directions:

DirectionExample
Pipeline → MonitorAnnotate a release so telemetry shows when a deployment happened
Monitor → PipelineQuery Azure Monitor alerts as a check, blocking deployment to an unhealthy target

Release annotations are what let you answer "did the error rate rise after we deployed?" on the chart rather than by cross-referencing timestamps by hand.

Workspaces

Logs are stored in a Log Analytics workspace. Deciding how many you need is a real design question: one workspace makes cross-service queries easy, several give tighter access control and separate retention. Data residency and who may read production telemetry usually decide it.

Primary sources

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free