Interview Prep/Azure/Fundamentals and Resource Hierarchy

What is the Activity Log and how is it different from resource logs?

BeginnerConceptFundamentals and Resource Hierarchy
Answer

The Activity Log is the subscription-level record of control-plane operations: who created, changed or deleted what, plus service health and policy events. It is kept for 90 days by default.

Resource logs (formerly diagnostic logs) are data-plane logs emitted by a resource: Key Vault AuditEvent, AKS kube-audit, Application Gateway access logs. They are not collected unless you create a diagnostic setting that sends them to Log Analytics, a storage account or Event Hubs.

az monitor activity-log list -g rg-shop-prod --offset 24h \
  --query "[].{op:operationName.localizedValue, who:caller, status:status.value}" -o table
Azure All Azure questions Roadmap: Azure core services

More on Fundamentals and Resource Hierarchy