Deleted app fails to restore because Azure thinks it still exists.

Jason 0 Reputation points
2023-12-02T23:09:18.5733333+00:00

When I run the Get-AzDeletedWebApp command my app service is returned. When I attempt to restore it to the same name using Restore-AzDeletedWebApp command I get Restore-AzDeletedWebApp : Operation returned an invalid status code 'Conflict'.

The resource seems to be in both states at once : Deleted and Still There.

How can I resolve this ?

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

1 answer

Sort by: Most helpful
  1. TP 83,221 Reputation points
    2023-12-03T10:23:15.1+00:00

    Hi Jason,

    Please run the Restore-AzDeletedWebApp command with -Debug on the end of it and post the output here (hide any sensitive info first). Would like to see full error message/details.

    I assume if you try to restore the web app via the portal you receive same error? Please confirm.

    Thanks.

    0 comments No comments