Complete the code to add a custom domain to an Azure App Service.
az webapp config hostname add --webapp-name myApp --resource-group myResourceGroup --hostname [1]The hostname parameter should be the custom domain you want to add, such as www.example.com.
Complete the command to bind a managed SSL certificate to your Azure App Service custom domain.
az webapp config ssl bind --certificate-thumbprint [1] --ssl-type SNI --name myApp --resource-group myResourceGroup --hostname www.example.comThe certificate-thumbprint is a unique identifier for the SSL certificate to bind.
Fix the error in the command to create a free managed SSL certificate for your custom domain.
az webapp config ssl create --resource-group myResourceGroup --name myApp --hostname [1]The hostname must be the custom domain you want the SSL certificate for, such as www.example.com.
Fill both blanks to configure a CNAME record for your custom domain pointing to your Azure app.
az network dns record-set cname create --resource-group myDNSGroup --zone-name example.com --name [1] --cname [2]
The name is the subdomain (like 'www'), and cname is the Azure app's default domain.
Fill all three blanks to create and bind a managed SSL certificate for your custom domain in Azure CLI.
thumbprint=$(az webapp config ssl create --resource-group [1] --name [2] --hostname [3] --query thumbprint -o tsv) az webapp config ssl bind --certificate-thumbprint $thumbprint --ssl-type SNI --name [2] --resource-group [1] --hostname [3]
Use your resource group, app name, and custom domain to create and bind the SSL certificate properly.