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.
More on Entra ID, RBAC and Identities
What is Microsoft Entra ID and how is it different from on-prem Active Directory?BeginnerWhat is the difference between an app registration and a service principal?BeginnerWhat is a managed identity and what problem does it solve?BeginnerSystem-assigned vs user-assigned managed identity: when do you use each?IntermediateHow does Azure RBAC evaluate access?IntermediateName the core built-in roles and the difference between Owner, Contributor and User Access Administrator.Beginner