问题
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:
removing it using azure portal
removing it using powershell
azure cli
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