Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
Hello Shubham kumar Singh
I understand that you're trying to delete the resource group, but you're unable to because the storage account is still present within it.
The RG deletion is currently on hold because the storage account within it is in the process of changing from LRS to GRS geo-replication. Azure does not provide an API to cancel geo-replication or a force-delete option while this operation is ongoing.
Check the any replication action is ongoing with the below CLI commands:
az storage account show --name <storageAccountName> --resource-group RG12 --query “{status:geoReplicationStats.status, lastSync:geoReplicationStats.lastSyncTime}”
If the action is still processing, you cannot delete it or stop it midway. You will need to wait until the action is completed. After completing the action, you can proceed to delete the storage account and then delete your resource group.
And below are the CLI command to delete:
Command for delete Storage account
az storage account delete -n -g RG12 --yes
Command for to delete Resource Group
az group delete -n RG12 --yes
Check the below documents for more understanding:
https://dotnet.territoriali.olinfo.it/en-us/troubleshoot/azure/virtual-machines/windows/storage-resource-deletion-errors
I hope the above answer helps you! Please let us know if you have any further questions.
Please don't forget to "upvote" where the information provided will help you, this can be beneficial to other members of the community.
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.