Custom Domain and SSL

Azure would provide the default domain and SSL for the app service which can be used for our generic purpose. But if you want to have your own custom domain and SSL certificates, then you have to follow the steps below.

  • Go to the App Service overview page and observe that the default <appname>.azurewebsites.net URL is the only and default URL

  • Go to the Custom Domain menu and click on ‘Add custom domain’

  • Change the domain provider to ‘All other domain services’ and leave the other selections unchanged. In the ‘Domain’ field type in the FQDN of your custom domain then choose the ‘Hostname record type’ as ‘CNAME’. Your domain validation entries will now be generated. Please keep this tab opened for the next steps.

  • More information about DNS record types can be found here: https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom- domain?tabs=cname%2Cazurecli#dns-record-types

  • In this example we are using GoDaddy as domain provider, the steps should be similar to all other providers and please refer your hosting provider’s documentation for provider specific steps. You need to add 1 CNAME record, and 1 TXT record as shown in the following screenshots. The values can be copied from the previous step.

  • After the DNS entries are added we need to validate the domain in App service page. Click on Validate in the already opened tab from step 3. Once validated you will get 2 green check marks in the status section. If one or all of them failed, please wait for a few minutes, and try validating again. It will eventually be validated if the added DNS entries are correct. Then click on ‘Add’

  • In the final step go to the Overview menu and validate whether the URL is now changed to the custom domain that you have added.

Last updated