Interview Prep/Azure/Entra ID, RBAC and Identities

How do you find who created or deleted a resource?

BeginnerConceptEntra ID, RBAC and Identities
Answer

The Activity Log records caller for every control-plane write:

az monitor activity-log list --resource-group rg-shop-prod --offset 7d \
  --query "[?contains(operationName.value,'delete')].{when:eventTimestamp, who:caller, op:operationName.value}" -o table

For longer than 90 days, export the Activity Log to a Log Analytics workspace via a subscription diagnostic setting and query the AzureActivity table.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities