Create custom domain for azure web static application

DO1 Yauhen Zdanovich 20 Reputation points

Hi Azure Community,

I'm facing an issue while trying to validate a custom domain for my Azure Static Web App, and I'm looking for some guidance.

Steps I've Taken: DNS Configuration on GoDaddy:

I created a CNAME record with the following details: Name: myapp Value: Custom Domain Setup in Azure Portal:

I attempted to create a custom domain in the Azure portal with the name: This is needed to match the domain used for my other Azure applications for authorization purposes. In the validation step, I tried to validate the CNAME record created at the external DNS. Issue Encountered: I received the following error: "CNAME Record is invalid. Please ensure the CNAME record has been created." Diagnostic Steps: I used the nslookup tool to check the CNAME record and received the following result: add screen

Observations: It seems like the CNAME record is pointing to instead of directly pointing to Questions:

  1. Is there something wrong with my DNS configuration on GoDaddy?
  2. Am I missing any steps in the Azure portal configuration?

Screen Shot 2024-06-24 at 16.08.18 PM

Screen Shot 2024-06-24 at 16.12.03 PM

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
631 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
838 questions
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 40,256 Reputation points Microsoft Employee

    @DO1 Yauhen Zdanovich ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I am afraid I did not understand your requirement here.

    From your verbatim,

    • You created a Static Web App with default domain :
    • You are planning to create a custom domain for this
    • Your DNS Provider and Manager is GoDaddy.

    When you say, "I attempted to create a custom domain in the Azure portal with the name:"

    • This is not supported.
    • The domain "" is owned by Azure and I am afraid it won't be possible for you to have purchased this domain "" from a DNS Registrar
    • In this case, "" will never have a CNAME record to your static web app ""

    I hope this makes sense.



    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful