Unable to delete Azure Resource Group after deploy

2019-08-02 17:49发布

问题:

I was deploying a set of resources in a resource group using Azure Managed Application on Service Catalog Managed Application which failed indeed due to some syntax errors (even though the syntax was correct and according to Azure Guidelines). Now when I open the failed resource, it displays nothing in it, which seems that there is nothing in the resource but just a reference to it. Later when I deleted the resource, it notified "cannot be deleted" or "successful deletion" however portal kept listing it in the resource group.

Secondly, when I tried to delete the resource group, it notified a deletion failure after a long interval, telling it was because of timeout.

I already gave a try to:

  1. removing it using azure portal

  2. removing it using powershell

  3. azure cli

  4. azure resources

Question # 1: Is there any way to delete such resources or resource groups?

Question # 2: Is there any way to find out the failure reasons in details like in form of logs?

回答1:

I would definitely try logging into portal.azure.com to see if your resource group exists. If it does, you should be able to select your resource group, then select the "Delete resource group" option. If you can't delete it, or it doesn't exist it sounds like an issue that you may need to contact Azure customer support about. If you want to see what actions have been performed on the resource group, you can find a log of all high level Azure activity in the Azure Activity Log.



回答2:

Some Regions take more time to delete the resources.

For question 1 => You can try this solution if problem persists. Delete Azure Resource Groups with no resources in it

For question 2 => You can try this Azure Logs