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
More on Fundamentals and Resource Hierarchy
Explain the Azure resource hierarchy from top to bottom.BeginnerWhat is the difference between an Entra tenant and a subscription?BeginnerWhat should go into a resource group and what should not?BeginnerWhat are regions, region pairs and availability zones in Azure?BeginnerWhy do logical zone numbers differ between subscriptions?IntermediateWhat is Azure Resource Manager (ARM)?Beginner