Unable to reused linux app service name after delete resource in the same subscription

Kanapol Terdvikran 0 Reputation points
2023-12-29T00:25:52.37+00:00

Currently my issue is I'm unable to create app service with same name and got "the app name xxx isn't available" after perform resource deletion.

I know about name reservation and in the same tenant we should be able to re-used it immediately.

I've can see the deleted resource when run command check for deleted web app and try to restore it but also failed the naming check.

"https://learn.microsoft.com/en-us/answers/questions/1424262/the-app-name-is-not-available-error-when-transferr"

I ask teamlead who perform move resource to another subscription on Nov. he's confirm it the same tenant and not change

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

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,736 Reputation points MVP
    2023-12-29T05:37:57.78+00:00

    Hello @Kanapol Terdvikra

    You are correct if you already removed the App there may be a small time to wait until DNS name becomes available again.

    You can remove webapp from deleted items, which seen after Get-AzDeletedWebApp pwsh command

    $deletedWebApp = Get-AzDeletedWebApp -ResourceGroupName <ResourceGroupName> -Name WebApp1

    Remove-AzResource -ResourceId $deletedWebApp.ResourceId -Force

    After above steps try to create WebApp again

    If you still have the issue after deleting WebApp, open Azure Support ticket.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.