Share via

Error adding Custom Domain to Static Web App

Beaton Care 0 Reputation points
2024-05-24T12:12:10.7633333+00:00

Im unable to assign a custom Domain to an Static Web App

I added the domain to an Static Web App that was deleted, for some reason the site was deleted but the domain was not released, when i try to add the domain to a new Static Web App i got the same error, tracing in the network the api response this is what i get

Message": "Request Envelope is invalid. Please ensure the custom domain is not linked to another site."

Any help will appreciated!

Regards,

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,511 Reputation points Moderator
    2024-05-28T23:32:17.3866667+00:00

    Hi @Beaton Care we are sorry to hear you're facing this problem. Has it been more than 72hrs hours? it can take some time for the domain to be released. Make sure the custom domain is not linked to any other Azure apps. You can do this by checking the custom domains of all your apps in the Azure portal.

    If the issue persists, you can try to manually remove the custom domain using Azure CLI or REST API by using these commands:

    • Azure CLI: az staticwebapp hostname delete
    • REST API: Remove-AzStaticWebAppCustomDomain

    Hope that helps.

    -Grace

    Was 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.