0
0
Azurecloud~10 mins

Custom domains and SSL in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a custom domain to an Azure App Service.

Azure
az webapp config hostname add --webapp-name myApp --resource-group myResourceGroup --hostname [1]
Drag options to blanks, or click blank then click option'
Awww.example.com
Bmyapp.azurewebsites.net
Cmyapp.com
Ddefaultdomain.net
Attempts:
3 left
💡 Hint
Common Mistakes
Using the default Azure domain instead of the custom domain.
Forgetting to specify the resource group.
2fill in blank
medium

Complete the command to bind a managed SSL certificate to your Azure App Service custom domain.

Azure
az webapp config ssl bind --certificate-thumbprint [1] --ssl-type SNI --name myApp --resource-group myResourceGroup --hostname www.example.com
Drag options to blanks, or click blank then click option'
AmyResourceGroup
B1234ABCD5678EFGH
CmyAppCertificate
Dwww.example.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using the domain name instead of the certificate thumbprint.
Confusing resource group or app name with thumbprint.
3fill in blank
hard

Fix the error in the command to create a free managed SSL certificate for your custom domain.

Azure
az webapp config ssl create --resource-group myResourceGroup --name myApp --hostname [1]
Drag options to blanks, or click blank then click option'
AmyApp
Bmyapp.azurewebsites.net
CmyResourceGroup
Dwww.example.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using the Azure default domain instead of the custom domain.
Confusing resource group or app name with hostname.
4fill in blank
hard

Fill both blanks to configure a CNAME record for your custom domain pointing to your Azure app.

Azure
az network dns record-set cname create --resource-group myDNSGroup --zone-name example.com --name [1] --cname [2]
Drag options to blanks, or click blank then click option'
Awww
Bmyapp.azurewebsites.net
Cmyapp
Dexample.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using the full domain name as the record name.
Setting the CNAME to the custom domain instead of the Azure app domain.
5fill in blank
hard

Fill all three blanks to create and bind a managed SSL certificate for your custom domain in Azure CLI.

Azure
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]
Drag options to blanks, or click blank then click option'
AmyResourceGroup
BmyApp
Cwww.example.com
Ddefaultdomain.net
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up resource group and app name.
Using the default Azure domain instead of the custom domain.