An Azure service that provides streamlined full-stack web app development.
Hello @Lionel Staal
Thanks for the detailed description.
If the custom hostname has already been removed from the previous Azure Static Web App but Azure still reports that it cannot be reused, it often indicates that the hostname binding hasn't been fully released by the platform yet rather than an issue with your DNS configuration.
A few things worth checking are:
- Verify that the hostname is no longer associated with any Azure resource (Static Web App, App Service, Front Door, or CDN endpoint) within the subscription or another subscription/tenant.
- Confirm that the public DNS records (CNAME, ALIAS, or TXT) reflect the current intended configuration and that any stale records have fully propagated.
- If the hostname was only recently removed, allow additional time for the backend to complete the cleanup, as hostname bindings may take longer than DNS propagation to be released.
If you've already confirmed that:
- the hostname is no longer bound to any Azure resource,
- DNS is correct, and
- the issue persists after sufficient propagation time,
then this is likely a stale backend hostname reservation. A Microsoft moderator may need to engage the Azure Static Web Apps engineering team to verify and clear the orphaned hostname binding so it can be reused. Similar cases involving stuck custom domain bindings have required backend intervention.
It would also help to include:
- the custom hostname (or a masked version),
- the Azure region,
- the approximate time the hostname was removed,
- and the correlation ID or Activity Log entry for the failed binding attempt, as these can assist the engineering team in locating the stale record.
Please "Accept the Answer" if this information helped you. This will help us and others in the community as well.