@Ke Li Based on the error message you received, it seems that the custom domain has not been configured inside Azure.
Here are the steps you can follow to map your custom domain to your Azure Web App:
1.
In the Azure portal, go to your Web App and click on "Custom domains" under the "Settings" section.
- Click on "Add custom domain" and enter the domain name you purchased from GoDaddy.
- Click on "Validate" to verify that you own the domain. You will need to create a CNAME record in your GoDaddy DNS settings that points to your Azure Web App's default domain name.
- Once the domain ownership is verified, click on "Add hostname" to add the custom domain to your Web App.
- Finally, update the DNS record A of the domain you bought from GoDaddy to be the inbound IP address of your Azure Web App.
After completing these steps, it may take some time for the DNS changes to propagate. Once the changes have propagated, you should be able to access your website using your custom domain name.
If you have already completed these steps and are still experiencing issues, you can try clearing your client cache by running the command ipconfig/flushdns
in the command prompt.
Refer to: https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain?tabs=root%2Cazurecli
If the issue persists, please let us know for further assistance.