Hello @Shovan Das
Thanks for contacting MS Q&A. I will be able to help you with resolving your issues.
Thanks for sharing the details, Shovan. You're encountering a known issue with Azure Static Web Apps where custom domains are "locked" if previously associated with another Azure resource, even if you no longer control that resource or tenant.
Verify DNS Setup (TXT/CNAME)
You likely did this already, but double-check:
For TXT
validation: Name: @
or your domain (shovandas.com
) Value: Azure-provided verification string (e.g. asuid.shovandas.com
)
For CNAME
validation (www.shovandas.com
): Name: www
Value: yourappname.azurestaticapps.net
Use tools like https://dnschecker.org to ensure propagation.
Azure doesn’t provide a public way to check which resource has the domain bound. So the only way to confirm this is via Azure Support.
Since you don’t have access to the previous Azure tenant, Microsoft needs to manually unbind the domain.
Here’s what to do:
- Go to Azure Support: https://azure.microsoft.com/en-us/support/create-ticket/
- Sign in with your new Azure account.
- Create a support request with these details:
- Service: Static Web Apps
- Problem type: Custom domain issues
- Issue: Custom domain previously used, cannot reassign
- Description:
I am the domain owner of
shovandas.com
and previously had it linked to a Static Web App under an old Azure account I can no longer access. I have removed all DNS records and verified ownership via Namecheap. I am now trying to link the domain to a new Static Web App but receive errors indicating it’s still linked to a prior resource. Please help release this domain for reuse.
- Attach a screenshot of the domain registered under your Namecheap account as proof of ownership.
Once the domain is released:
Try to add it again from the Azure portal.
Follow the TXT/CNAME validation steps, and it should succeed.
Docs - https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain
If this answers your query, do click Accept Answer
and Yes
If this answer was helpful, and, if you have any further queries, do let us know.
Siri