Complete the code to create a CDN endpoint specifying its location.
az cdn endpoint create --name myEndpoint --profile-name myProfile --resource-group myResourceGroup --origin-host-name myOrigin [1]The --location flag is used to specify the location for the CDN endpoint.
Complete the code to enable HTTPS on a custom domain in Azure CDN.
az cdn custom-domain enable-https --resource-group myResourceGroup --profile-name myProfile --endpoint-name myEndpoint --name myCustomDomain [1]Using CdnManagedCertificate enables Azure to manage the HTTPS certificate automatically.
Fix the error in the command to map a custom domain to a CDN endpoint.
az cdn custom-domain create --resource-group myResourceGroup --profile-name myProfile --endpoint-name myEndpoint --hostname [1]The --hostname parameter requires the custom domain name, not resource group or profile names.
Fill both blanks to create a CDN profile with the correct SKU and location.
az cdn profile create --name myProfile --resource-group myResourceGroup --sku [1] --location [2]
The SKU Standard_Microsoft is a common choice, and eastus is a valid Azure region.
Fill all three blanks to configure a custom domain with HTTPS enabled using a managed certificate.
az cdn custom-domain create --resource-group myResourceGroup --profile-name myProfile --endpoint-name myEndpoint --name [2] --hostname [1] && az cdn custom-domain enable-https --resource-group myResourceGroup --profile-name myProfile --endpoint-name myEndpoint --name [2] --certificate-source [3]
The hostname is the full domain name, the custom domain name is usually the domain without extension, and the certificate source is set to CdnManagedCertificate for automatic HTTPS.