Create custom domain for azure web static application

DO1 Yauhen Zdanovich 20 Reputation points
2024-06-24T14:27:10.4766667+00:00

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: victorious-any-bla-bla.azurestaticapps.net Custom Domain Setup in Azure Portal:

I attempted to create a custom domain in the Azure portal with the name: myapp.azurewebsites.net. 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 azurestaticappstm4.trafficmanager.net instead of directly pointing to victorious-any-bla-bla.azurestaticapps.net. 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
    2024-06-25T06:56:54.42+00:00

    @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 : victorious-any-bla-bla.azurestaticapps.net
    • 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: myapp.azurewebsites.net"

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

    I hope this makes sense.

    Cheers,

    Kapil

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful