Microsoft Azure Administrator (AZ-104) · Section 3 · 23% of the exam
Map an existing custom DNS name to an App Service
One of the objectives of the Microsoft Azure Administrator (AZ-104) exam, in the section “Deploy and manage Azure compute resources”. Here is what it covers, the points to remember and a question to try.
What it covers
Production web apps need their own DNS name, a trusted certificate, a restore point and a safe way to release. This lesson maps a custom domain with the right DNS records, secures it with a managed or uploaded certificate, configures backups, and uses deployment slots to swap releases without downtime.
Points to remember
- Custom domains need a paid tier (not Free) and a public DNS zone; use an A record for the root domain and a CNAME for subdomains and wildcards.
- Add a TXT record
asuid[.subdomain]with the domain verification ID to prove ownership and prevent takeover. - Certificates and TLS bindings need Basic or higher; IP-based SSL needs Standard or higher; SNI SSL is free and the default.
- The free managed certificate covers one name, is not exportable, has no wildcard, and needs public reachability with a CNAME pointing directly to azurewebsites.net.
- Key Vault certificates sync to the app within 24 hours; an uploaded certificate needs a manual binding update on renewal.
Try a question
A PKCS12 certificate stored in Azure Key Vault must be imported into an App Service app using Azure RBAC for the vault. What must you grant?
- AThe Owner role on the whole subscription to the web app's name and the user
- BKey Vault Certificate User on the vault for the App Service resource provider identity
- CThe Reader role at subscription scope to the user who imports the certificate into the app
- DKey Vault Crypto Officer to the App Service plan
Show the answer
B. Authorize the App Service resource provider (application ID abfa0a7c-a6b6-4736-8310-5855508787cd) with Key Vault Certificate User, or give it Get permission on secrets and certificates if the vault uses access policies. If the vault has a firewall, allow trusted Microsoft services. After you renew the certificate in the vault, App Service syncs it within 24 hours.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson App Service custom domains, certificates, backups and deployment slots teaches this objective (about 60 minutes), and 17 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Interpret an Azure Resource Manager template or a Bicep file
- Modify an existing Azure Resource Manager template
- Modify an existing Bicep file
- Deploy resources by using an Azure Resource Manager template or a Bicep file
- Export a deployment as an Azure Resource Manager template or convert an Azure Resource Manager template to a Bicep file
- Create a virtual machine
- Configure Azure Disk Encryption
- Move a virtual machine to another resource group, subscription, or region
- Manage virtual machine sizes
- Manage virtual machine disks
- Deploy virtual machines to availability zones and availability sets
- Deploy and configure an Azure Virtual Machine Scale Sets