Microsoft Azure Administrator (AZ-104) · Section 3 · 23% of the exam
Configure certificates and Transport Layer Security (TLS) for 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 staging slot must use a test database connection string, while production must keep its own connection string through every swap. What should you do?
- AMark the connection string as a deployment slot setting on each slot
- BStore the connection string in the code and redeploy after each swap
- CUse the same connection string and change the database name by hand after a swap
- DCreate a second App Service plan for the staging database
Show the answer
A. App settings and connection strings swap by default, so a setting that must differ between environments must be marked Deployment slot setting (CLI: --slot-settings). Settings such as TLS version, custom domains, scale settings, Always On, IP restrictions and managed identities never swap.
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