Can't add azure static web app custom domain

CalebK 6 Reputation points
2022-11-18T03:18:48.49+00:00

Hello,

I had a free trial azure subscription that I created an azure static web app in. I had successfully set it up with an apex and custom cname subdomain using AzureDNS. This was a hobby project and I got busy with work--long story short--my subscription ended and I missed the window to renew so all of my azure resources were deleted. My resources were deleted on 10/31 based on the email I've received.

I have since created a new pay-as-you-go azure subscription using the same account details and a new static web app. I'm at the point where I want to use my custom domain however when attempting to set up a cname record I receive an error stating:

"Could not add custom domain. Please ensure the custom domain is not linked to another app or that a previous implementation is not still being cleaned up."

When attempting to set up the apex domain I receive an error stating:

"domainName is invalid. The domain name given was not found."

I have made sure that I deleted all domain registrar records associated with the old static web app and custom azure dns nameserver entries 2+ weeks ago.

I am not sure where to go from here as it feels like there is some issue regarding the original AzureDNS / static web app setup I had created however I seemingly have no way to access my old subscription or its resources.

Any help or ideas are appreciated

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,917 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
771 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,256 Reputation points Microsoft Employee
    2022-11-19T04:58:44.59+00:00

    @CalebKlein-0244 We understand you are encountering an error while trying to add a custom domain name to your static web app.

    It could be that you are hitting a wait period due to security concerns of trying to prevent take over attacks on domains. Before we go down that path, there's one item to check...

    We have also seen this error if you are using the same domain name on an Azure Web App. Can you verify if you are using an Azure Web App with the same domain name as the one giving you the error on your Static Web App?

    We look forward to your reply.