A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
Do not delete the resource group again until the Azure Activity Log identifies the identity and operation recreating it; then disable that controlling policy, automation, deployment, or managed application before performing the final deletion.
1. Identify what recreated the group
Because the resource group was deleted and recreated, inspect the log at the subscription scope:
- Open Azure portal → Subscriptions → your subscription → Activity log.
- Set the time range to include the latest recreation.
- Add filters:
- Operation: create/write operations.
- Resource group: the recreated group, if available.
- Status: Succeeded.
- Open the earliest successful write event for the recreated resource group or one of its resources.
- Record:
- Event initiated by / Caller
- Operation name
- Correlation ID
- Resource ID
- Filter by that Correlation ID to see all resources created by the same deployment.
The Activity Log is the authoritative location for determining who created a resource. Entries can take approximately 3–20 minutes to appear and are retained for 90 days by default.^1^
You can also inspect recent events from Azure Cloud Shell:
rg="<resource-group-name>"
az monitor activity-log list \
--resource-group "$rg" \
--offset 1d \
--query "[?status.value=='Succeeded'].{
time:eventTimestamp,
caller:caller,
operation:operationName.value,
correlationId:correlationId
}" \
--output table
If the resource-group filter returns nothing because the group was absent between deletion and recreation, run the same command without --resource-group and inspect subscription-level events.
2. Stop the creator shown in the log
If the caller is an Azure Policy managed identity
Check Azure portal → Policy → Assignments at all applicable scopes:
- Resource group
- Subscription
- Management group
Open matching assignments and inspect definitions using the deployIfNotExists or modify effect, plus any associated remediation task. A deployIfNotExists policy can execute a template deployment when required related resources are missing; policy remediation uses the managed identity associated with the assignment.^2^^3^
If the assignment is no longer required:
- Obtain approval from the subscription or management-group owner.
- Delete or change the assignment, or create an appropriate policy exemption.
- Stop/cancel any applicable remediation task.
- Confirm no new write operations appear in the Activity Log.
- Delete the resource group once.
Do not remove a management-group policy merely to delete one workload unless its owner confirms that this is intended.
If the caller is a service principal, managed identity, or user
The resources are likely being redeployed by an external controller. Use the caller identity and correlation ID to locate:
- Azure DevOps or GitHub deployment pipelines
- Terraform/Bicep/ARM scheduled deployments
- Azure Automation runbooks and linked schedules
- Logic Apps or Functions
- Third-party/Marketplace management products
Pause or disable the job first. Then check Subscription → Access control (IAM) → Role assignments for that identity and remove its write access only if it should no longer manage the environment. Review the owning team before changing shared service-principal permissions.
If the operation refers to Microsoft.Solutions
Check Azure portal → Managed Applications for an application that owns the resource group. Delete the managed application instance, rather than repeatedly deleting its managed resource group. Microsoft documents that deleting a managed application also deletes its managed resource group.^4^
3. Distinguish recreation from stale portal state
A successful write event with a new creation timestamp confirms genuine recreation. If there is no corresponding create/write event and CLI reports that the group does not exist, the portal may be showing cached or delayed metadata rather than active resources.
After the controlling mechanism is stopped, delete the group through Resource groups → select group → Delete resource group, or:
az group delete \
--name "<resource-group-name>" \
--yes
Deleting a resource group removes the resources it contains, and the group itself cannot generally be recovered as a unit.^5^
References