The situation is as follows:
[1] Earlier I created a Web App Service with a specific name X on subscription A. This was part of an automated process involving DevOps pipelines and Bicep templates. After testing the automatic deployment of a web app through DevOps pipelines I wanted to deploy the same app with the same name X on a different subscription B. I'm aware that the URL has to be globally unique so [2] I first deleted the web app on subscription A. Then [3] I tried to use the same deployment technique on subscription B with the same name X for my web app. This did not seem to work as the error code I kept receiving was:
Website with given name X already exists
So [4] I tried the same deployment with app name Y. This worked flawlessly and the app is running as we speak. I am unable to personally look into the portal of subscription B but I have a buddy who can. We just took a look and I have the following additional information.
- There was NOT a version of the web app with name X running on subscription B
- There was never a web app with name X on subscription B (used "Get-AzDeletedWebApp")
- The web app with name Y is running on subscription B
- I am still able to creat web app with name X on subscription A
I so checked my own portal environment and found all the previously deleted websites but not a single one that was still alive. I know that there is a 30 days window in which you can retrieve a web app but I cant find any information about the fact whether or not the URL is also still being claimed during that period.
My guess is that this is the case and that I have to perform some kind of extra manual purge in order to make web app with name A be able to be deployed on subscription B. So my concluding question is:
- Is this the case?
- If so, can I purge these old versions?
- If so, how do I purge those?
- If not to any of the above what should I do next?
Thanks in advance.