To resolve the issue with your custom domain setup in Azure Static Web Apps, ensure that you have correctly added the CNAME record to your DNS provider. The CNAME record should point to the default hostname of your Static Web App. Here are the steps to follow:
- Verify CNAME Record: Make sure that the CNAME record you added is correctly formatted. It should look something like this:
- Name:
www.yourdomain.com(or your specific subdomain) - Value:
yourapp.azurestaticapps.net(replace with your actual Azure Static Web App URL)
- Name:
- DNS Propagation: After adding the CNAME record, it may take some time for DNS changes to propagate. You can check the status of your DNS records using online DNS lookup tools to ensure that the CNAME is correctly pointing to your Azure Static Web App.
- Check Domain Validation: Once the CNAME record is correctly set up and has propagated, return to the Azure portal and check if the custom domain validation is successful. If the Value column is still blank, it may indicate that Azure is unable to detect the CNAME record.
- Contact Support: If you have verified that the CNAME is correct and DNS propagation has occurred but the issue persists, consider reaching out to Azure support for further assistance.
By following these steps, you should be able to successfully validate your custom domain and remove the prompt to add a CNAME, ALIAS, or A record.
References: