Azure Logging Cheat Sheet

Diagnostic settings, Log Analytics

Last Updated: November 21, 2025

Settings

Feature Role
Diagnostic settings Capture metrics
Log Analytics Query logs
Alerts Trigger on conditions

Commands

az monitor diagnostic-settings create
Enable logs
az monitor log-analytics query
Run Kusto
az monitor alert create
Set alert

Tips

Set retention, standardize resource tags, and share queries.

💡 Pro Tip: Route logs to Log Analytics, set retention, and alert on anomalies.
← Back to DevOps & Cloud | Browse all categories | View all cheat sheets