Share via

Question about Azure dns.

Puttisate 40 Reputation points
2026-05-28T09:05:06.92+00:00

There's a web application that was deleted a long time ago, but its public DNS still remains, ending in *.azurewebsites.net. How can I remove it?

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


2 answers

Sort by: Most helpful
  1. Golla Venkata Pavani 5,745 Reputation points Microsoft External Staff Moderator
    2026-05-28T11:01:15.34+00:00

    Hi @Puttisate

    Thank you for reaching us regarding the issue.

    The *.azurewebsites.net DNS name is the default hostname automatically assigned and managed by Azure App Service, and it is not a DNS record that you own or can manually delete.

    • This domain belongs to Microsoft and is part of the Azure platform infrastructure.
    • All records under the azurewebsites.net zone are platform-managed and cannot be modified or removed manually.

    What happens when the web app is deleted?

    • When an App Service is deleted, the associated default hostname (for example, yourapp.azurewebsites.net) is eventually deprovisioned automatically by the platform.
    • However, there can be a retention period or backend cleanup delay, during which:
      • The DNS name may still resolve
      • The name may still appear unavailable for reuse
    • App Service names (which form part of the *.azurewebsites.net URL) must be globally unique across Azure, so the name may remain reserved temporarily after deletion.
      User's image

    When action is required:
    The only time you need to take action is if:

    • You configured a custom domain (like app.contoso.com) pointing to azurewebsites.net > In that case, you must remove the DNS record (CNAME/A) from your DNS provider to prevent stale or dangling DNS.

    Reference:
    https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/create-delete-resources-faq-new
    https://learn.microsoft.com/en-us/azure/app-service/app-service-undelete?tabs=portal
    https://learn.microsoft.com/en-us/azure/security/fundamentals/subdomain-takeover

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please "accept" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?

    1 person found this answer helpful.

  2. AI answer

    2026-05-28T09:05:36.0133333+00:00

    The *.azurewebsites.net hostname is tied to the original App Service resource. When the app is deleted, the DNS name can remain reserved for a period of time and may still appear resolvable.

    To fully remove or reclaim that hostname, recreate the deleted web app with the exact same name in the same region and subscription, then remove any custom bindings or domains associated with it, and finally delete or change the app name as needed. This pattern is the same workaround used when a deleted web app still holds a custom domain: recreate the resource with the same name, clean up the bindings, and then reuse or release the name.

    If the hostname is still blocked or visible after this, wait for the DNS reservation period to expire; after that, the DNS name can be reclaimed or will stop resolving.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

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