Home › Studies › AZ-104 › Compute › App Service Configuration

App Service Configuration

app settings · TLS and certificates · custom domains · backup · networking · deployment slots

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Create an app

App settings, connection strings and general settings

HTTPS only and TLS version

Certificates

OptionNotes
App Service managed certificate (free)No wildcard, no private DNS, not exportable, not supported in App Service Environment, domain up to 64 characters. Issued by DigiCert. One per supported custom domain. Renews automatically while the prerequisites hold
App Service certificate (purchased)Issued by GoDaddy and stored in Key Vault. Import it into the app
Import from Key VaultNeeds a PKCS12 certificate and access for the App Service resource provider
Upload a private certificate (.pfx)Password-protected PFX with the full chain. Uploaded certificates don't update bindings automatically
Upload a public certificate (.cer)For code that reaches remote resources. Not for securing a domain

TLS/SSL bindings

SNI SSLIP based SSL
TierBasic and upStandard and up
BindingsMany; several certificates on one IP; all modern browsersOnly one IP SSL binding
Inbound IPSharedDedicated public IP. Remap any A record to the new IP
CNAMEPoints to <app>.azurewebsites.netA CNAME that used an SNI binding must be remapped to sni.<app>.azurewebsites.net
CostFreeHourly charge (some Standard and higher tiers include one free)
OtherNot supported together with service endpoint access rules or private endpoints

Map a custom domain

Backup and restore

Automatic backupCustom backup
SetupNone; can't be stoppedYou configure it: storage account and container, schedule and retention
FrequencyHourly, not configurableConfigurable. The limits depend on tier and Microsoft's pages differ in detail, so check the current Learn page
Retention30 days0 to 30 days, or indefinite. On-demand backups are kept indefinitely
Size30 GB10 GB, of which 4 GB can be a linked database
Storage accountNot needed; not downloadableNeeds a storage account that supports SAS-based authorization. Managed identity access to the account isn't supported. Downloadable as blobs
OtherNo linked database, no partial backups. Stored in the same datacenter, so it isn't a DR planPartial backups. Supported over a virtual network

Networking

FeatureDirectionWhat it doesKey limits
Access restrictionsInboundAllow or deny rules in priority order. Denied request gets HTTP 403512 rules per app. Not applied to private endpoint traffic
Service endpointsInboundAllow a VNet subnet through an access restriction ruleNot supported on apps with a private endpoint or IP-based SSL
Private endpointInboundPrivate IP from your VNet over Private LinkBasic and up (not Free or Shared). Up to 100 per app. Not supported: IP-based TLS, FTP, remote debugging
Regional VNet integrationOutboundLets the app reach resources in a VNet, peered VNets, ExpressRoute and VPN networks. TCP and UDPBasic and up. Never inbound. Same region. One per app, two per plan
Hybrid ConnectionsOutboundTCP tunnel to one host:port through Azure Relay on port 443 and the Hybrid Connection ManagerBasic 5 per plan, Standard 25 per plan, Premium and Isolated 220 per app. No UDP, no Active Directory or LDAP

Deployment slots

Swapped with the contentStay with the slot (not swapped)
Language framework settings, 32/64-bit, WebSockets, handler mappingsProtocol settings (HTTPS Only, TLS version, client certificates)
App settings and connection strings (unless marked as slot settings)Custom domain names, publishing endpoints
Mounted storage accounts (unless slot setting), public certificates, WebJobs contentNon-public certificates and TLS/SSL settings, scale settings, WebJobs schedulers
Hybrid connections, service endpoints, Azure CDN, path mappingsIP restrictions, Always On, diagnostic log settings, CORS, managed identities, VNet integration, settings ending in _EXTENSION_VERSION

CLI and PowerShell

TaskAzure CLIPowerShell
Create planaz appservice plan create --name <plan> --resource-group <rg> --sku P0v3 --is-linuxNew-AzAppServicePlan -Name <plan> -Location <loc> -ResourceGroupName <rg> -Tier Free
Create web appaz webapp create --name <app> --resource-group <rg> --plan <plan> --runtime "NODE:24LTS"New-AzWebApp -Name <app> -Location <loc> -AppServicePlan <plan> -ResourceGroupName <rg>
Connection stringaz webapp config connection-string set -g <rg> -n <app> --connection-string-type SQLAzure --settings N=VSet-AzWebApp -ConnectionStrings $hash
Sticky settingaz webapp config appsettings set ... --settings K=V --slot-settings KSet-AzWebAppSlotConfigName -ResourceGroupName <rg> -Name <app> -AppSettingNames K
Add custom domainaz webapp config hostname add --webapp-name <app> --resource-group <rg> --hostname <fqdn>
Upload PFXaz webapp config ssl upload --certificate-file <pfx> --certificate-password <pw> --name <app> --resource-group <rg>New-AzWebAppSSLBinding -WebAppName <app> -ResourceGroupName <rg> -Name <fqdn> -CertificateFilePath <pfx> -CertificatePassword <pw> -SslState SniEnabled
Import from Key Vaultaz webapp config ssl import --resource-group <rg> --name <app> --key-vault <vault> --key-vault-certificate-name <cert>
Bind certificateaz webapp config ssl bind --certificate-thumbprint <tp> --ssl-type SNI --name <app> --resource-group <rg>New-AzWebAppSSLBinding ... -SslState SniEnabled
Key Vault access for App Serviceaz role assignment create --role "Key Vault Certificate User" --assignee abfa0a7c-a6b6-4736-8310-5855508787cd --scope <vault id>New-AzRoleAssignment -RoleDefinitionName "Key Vault Certificate User" -ApplicationId abfa0a7c-a6b6-4736-8310-5855508787cd -Scope <vault id>
Custom backup (on demand)az webapp config backup create --resource-group <rg> --webapp-name <app> --container-url "<SAS container url>"
List and restore backupaz webapp config backup list; az webapp config backup restore --backup-name <n> --container-url <url> --webapp-name <app> -g <rg> [--target-name] [--overwrite] [--slot]
Access restriction ruleaz webapp config access-restriction add -g <rg> -n <app> --rule-name R --action Allow --ip-address 122.133.144.0/24 --priority 100 (also --service-tag, --http-header, --scm-site true)Add-AzWebAppAccessRestrictionRule -ResourceGroupName <rg> -WebAppName <app> -Name R -Priority 100 -Action Allow -IpAddress 122.133.144.0/24
Unmatched rule actionaz resource update -g <rg> -n <app> --resource-type Microsoft.Web/sites --set properties.siteConfig.ipSecurityRestrictionsDefaultAction=AllowSet-AzResource on the same property
VNet integrationaz webapp vnet-integration add -g <rg> -n <app> --vnet <vnet> --subnet <subnet>
Create slotaz webapp deployment slot create --name <app> --resource-group <rg> --slot <slot>New-AzWebAppSlot -ResourceGroupName <rg> -Name <app> -Slot <slot> -AppServicePlan <plan>
Swap slotsaz webapp deployment slot swap -g <rg> -n <app> --slot <src> --target-slot production (--action preview/swap/reset)Switch-AzWebAppSlot -SourceSlotName <src> -DestinationSlotName production -ResourceGroupName <rg> -Name <app>
Auto swapaz webapp deployment slot auto-swap -n <app> -g <rg> --slot <src>Set-AzWebAppSlot ... -AutoSwapSlotName production
Traffic routingaz webapp traffic-routing set -g <rg> -n <app> --distribution <slot>=15Add-AzWebAppTrafficRouting -ResourceGroupName <rg> -WebAppName <app> -RoutingRule @{ActionHostName='<url>';ReroutePercentage='15';Name='<slot>'}
Delete slotaz webapp deployment slot delete --name <app> -g <rg> --slot <slot>Remove-AzWebAppSlot -ResourceGroupName <rg> -Name <app> -Slot <slot>
Find IPsnslookup <app>.azurewebsites.net; az webapp show -g <rg> -n <app> --query outboundIpAddresses -o tsv(Get-AzWebApp -ResourceGroup <rg> -Name <app>).OutboundIpAddresses

Exam Tips

Tick each tip once you can answer it without looking.

“Free managed certificate for *.contoso.com” → Not possible: managed certificates don't support wildcards. Use an App Service certificate, a Key Vault import or an uploaded PFX. Trap: assuming the free certificate covers wildcard domains.

“Custom domain with HTTPS; the plan is Free or Shared” → Scale up to Basic or higher. Trap: adding the certificate on Shared. Shared can map a custom domain but can't secure it, and Free can't map one at all.

“Map contoso.com (the root domain)” → A record plus a TXT asuid record with the domain verification ID. Trap: a CNAME at the root.

“Map www.contoso.com” → CNAME to <app>.azurewebsites.net plus a TXT asuid.www record, then Validate and Add. Trap: validating before the DNS records exist.

“Prevent subdomain takeover of a custom domain” → The TXT asuid record holding the domain verification ID. Trap: relying on the CNAME alone.

“Key Vault import fails with access denied” → Grant the App Service resource provider (service principal) the Key Vault Certificate User role; allow trusted Microsoft services if the vault firewall is on. Trap: granting access only to your own account or to the app's managed identity.

“Certificate renewed in Key Vault; how does the app pick it up” → Automatic sync within 24 hours, and bindings update by themselves. Trap: re-uploading and rebinding. That is for uploaded certificates.

“Renew an uploaded PFX without changing the inbound IP” → Upload the new certificate, Update binding to select it, then delete the old one. Trap: deleting the old certificate first. Uploaded certificates don't update bindings automatically.

“PFX upload requirements” → Password-protected PFX with the full chain; for a domain also server-authentication EKU and a trusted CA. Trap: a .cer file. It has no private key and can't secure a domain.

“A dedicated inbound IP for the app, or a legacy IP-based SSL client” → IP based SSL binding (Standard or higher); remap the A record to the new IP. Trap: SNI SSL, which shares the IP.

“Force HTTPS and TLS 1.2 or higher” → HTTPS Only and Minimum TLS version in general settings (the default minimum is already 1.2). Trap: an access restriction rule.

“Restore a backup with minimal production downtime” → Restore to a slot, validate, then swap. Trap: restoring over production. The app is stopped and its files are overwritten.

“After a restore, custom domains, TLS, VNet integration and private endpoints are missing” → They aren't part of the restored configuration: set them up again. Trap: assuming a restore is a full clone.

“Content that an App Service backup skips” → Run-from-ZIP package content and custom-mounted Azure storage such as Azure Files. Trap: expecting them in the backup.

“Block one IP address and allow everyone else” → Deny rule for that IP and set the unmatched rule to Allow. Trap: adding only the Deny rule. With one or more rules an implicit deny all applies at the end.

“Restrict the app to one Azure Front Door” → Service tag AzureFrontDoor.Backend plus the X-Azure-FDID header filter. Trap: the service tag alone. It allows any Front Door instance.

“The web app must call a private database in a VNet (outbound)” → Regional VNet integration with a delegated, empty subnet (/28 or larger). Trap: a private endpoint. It is inbound only.

“Clients in a VNet must reach the app privately; public access must be off” → Private endpoint, the privatelink.azurewebsites.net DNS zone, and public network access disabled. Trap: VNet integration (outbound only) or access restrictions (not evaluated for private endpoint traffic).

“A connection string must differ between production and staging and not move on swap” → Mark it as a deployment slot setting (--slot-settings). Trap: a normal setting. It swaps with the code.

“Validate the new version with production settings and keep the option to cancel” → Swap with preview, then Complete Swap or Cancel Swap. Trap: a normal swap, which is immediate. Preview isn't possible when site authentication is enabled in a slot.

Sources

Checked against Microsoft Learn on November 13, 2026.

← App Service PlansCompute overview →