You are configuring a custom domain `www.contoso.com` for an Azure App Service web app named `app-prod-west`. You must secure the custom domain by using a free App Service Managed Certificate. Which sequence of steps should you perform to complete the configuration?
- 1Create a CNAME record at your DNS provider that maps `www` to `app-prod-west.azurewebsites.net`.
- 2Add the custom domain `www.contoso.com` to the App Service web app's Custom Domains configuration.
- 3Create a free App Service Managed Certificate for the custom domain.
- 4Add a TLS/SSL binding that associates the custom domain with the newly generated certificate.
Answer
First, create a CNAME record mapping the domain to the app's default host name. Second, add the custom domain to the App Service web app. Third, create a free App Service Managed Certificate. Finally, create a TLS/SSL binding associating the domain with the certificate.
To secure a custom domain using an App Service Managed Certificate, the domain must first be pointed to the web app's default URL via DNS. Once the DNS propagates, you register the custom domain in the App Service. After registration, Azure can issue the managed certificate for that validated domain. Finally, you bind the domain to the certificate to enable HTTPS traffic.
Step-by-Step Solution
Key Concept
Configuring custom domains and securing them with App Service Managed Certificates in Azure App Service.