Unable to delete Azure Resource Group after deployment failure in it

☆樱花仙子☆ 提交于 2020-01-15 12:44:05

问题


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



来源:https://stackoverflow.com/questions/46405988/unable-to-delete-azure-resource-group-after-deployment-failure-in-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!