Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi LKMaryWill-5007 & thx for join me at Q&A platform,
what u're seeing is actually expected behavior with Azure App Service, and the fact that you can recreate gravitysync in the original tenant is a pretty good indication of what's happening. Azure App Service has a built-in name reservation mechanism designed to prevent subdomain takeovers. When a web app is deleted, its *.azurewebsites.net hostname isn't immediately released for use by subscriptions belonging to a different Microsoft Entra tenant.
Subscriptions within the original tenant can generally reuse the name during the reservation period. Subscriptions in another tenant cannot, even when the original web app has been completely deleted. So this isn't necessarily a leftover resource or a problem with your target subscription.
Regarding the cooldown period, Microsoft moderators have previously indicated that it depends on the original subscription's quota ID. They've cited approximately 7 days for some subscription types and up to 180 days for Enterprise/CSP subscriptions.
I wouldn't treat either duration as a guaranteed release date, tho. The exact reservation status and expiry need to be confirmed by Microsoft. There's no supported Azure CLI or PowerShell command that lets you manually release this reservation across tenants. Deleting the resource group, removing DNS records, or retrying deployment won't bypass the protection.
For a production migration, I'd open an Azure App Service support case and specifically request an early release of the deleted web app's hostname reservation for cross-tenant reuse. Provide the original app name, source and destination subscription IDs, both tenant IDs, original resource group, Azure region, and approximate deletion timestamp. Support can investigate the reservation and determine whether a backend release is possible after verifying ownership. There have been cases where Microsoft successfully released these reservations, but it's not an automatic or guaranteed operation.
If the migration is urgent, the practical alternative is to create the destination web app under a different name and configure your existing custom domain against it. That avoids waiting for gravitysync.azurewebsites.net to become available, although any dependencies on the original default hostname would still need to be addressed.
Also, keep in mind that the deleted web app's restore retention period and the hostname reservation cooldown are separate mechanisms. Restoring a deleted app doesn't automatically transfer its name to another tenant.
My recommendation is not to wait for an assumed 7-day or 30-day expiry if this is production-critical. Get App Service Support to check the actual reservation and whether an early release is possible.
rgds,
Alex
p.s. if my answer is help - pls mark it as an answer