Unable to delete orphaned Azure Web App resource

Ikuo Keshi 20 Reputation points
2024-06-29T15:30:31.76+00:00

I am unable to delete an orphaned Azure Web App resource (Microsoft.Web/sites) named "app-backend-psvgwefzxlqto" that resides in a deleted resource group named "rg-futchat". This resource is not visible in the Azure portal, and I can only confirm its existence through Azure CLI.

Problem:

  • The resource group "rg-futchat" has been deleted.
  • However, the resource "app-backend-psvgwefzxlqto" still exists when I run the az resource list command.
  • When I try to delete the resource using the az resource delete command, I get the following error message:

(ResourceGroupNotFound) Resource group 'rg-futchat' could not be found. Code: ResourceGroupNotFound Message: Resource group 'rg-futchat' could not be found. Some resources failed to be deleted (run with --verbose for more information): /subscriptions/<YOUR_SUBSCRIPTION_ID>/resourceGroups/rg-futchat/providers/Microsoft.Web/sites/app-backend-psvgwefzxlqto

What I tried:

Updated Azure CLI to the latest version.

Searched for the resource in the Azure portal, but it was not found.

Environment:

  • Azure CLI version:
  • OS: Windows11

Question:

How can I delete this orphaned resource "app-backend-psvgwefzxlqto"?

Any help would be greatly appreciated! What I tried:

Updated Azure CLI to the latest version.

Searched for the resource in the Azure portal, but it was not found.

Environment:

  • Azure CLI version: 2.61.0
  • OS: Windows11 Pro

Question:

How can I delete this orphaned resource "app-backend-psvgwefzxlqto"?

Any help would be greatly appreciated!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,336 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 83,311 Reputation points
    2024-06-29T16:18:15.67+00:00

    Hi,

    Have you tried re-creating the resource group using same name, in same region? If yes, are you able to see the web app resource in the group?

    Normally when an issue like this occurs you will need to open a support request and an engineer will fix it on the backend, but it is worth trying to fix it yourself first.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful