Domain 3 of 5 · Chapter 4 of 4

Create and configure Azure App Service

Unlock the complete study guide + 25 practice exams totaling 1,497 questions.

Bundled into the existing Microsoft Azure Administrator premium course — no separate purchase.

14-day refund guarantee on one-time purchases and your first subscription charge.

Included in this chapter:

  • What an App Service plan decides
  • Choosing a pricing tier
  • Deployment units: moving plans and zone redundancy
  • Scale up and scale out
  • Choosing a scale-out method
  • Per-app scaling
  • Creating a web app: code or container
  • App settings and connection strings
  • Keeping an app loaded with Always On
  • Who signs in: built-in authentication and managed identity
  • Running a custom container
  • Pulling private images and container deployment
  • Mapping an existing custom domain
  • Certificates: sources and requirements
  • TLS/SSL bindings
  • HTTPS Only and minimum TLS version
  • Automatic and custom backups
  • Restoring a backup
  • Partial backups with _backup.filter
  • Inbound and outbound networking
  • VNet integration: subnet and routing
  • Access restrictions on the public endpoint
  • Private endpoints
  • Inbound and outbound IP addresses
  • Deployment slots and what a swap moves
  • How a swap runs
  • Routing a share of production traffic to a slot

Scale-out methods for an App Service plan

Scale-out methodManual scale-outAutoscaleAutomatic scaling
Pricing tiersBasic and higherStandard and higherPremium v2, v3, and v4
What changes the instance countYou set itMetric rules and schedules you defineApp Service, from incoming HTTP traffic
Schedule-based scalingNoYesNo
Applies toThe whole planThe whole planEach app (always ready instances, maximum scale limit) within the plan's maximum burst
Prewarmed buffer instancesNoNoYes (default 1)
Session affinity (ARR affinity)On by defaultOn by defaultTurn it off

Decision tree

Need a feature orbigger instance?YesScale uptier or sizeNoCount fixed byan operator?YesManualscale-outBasic and upNoMetric rules ora schedule?YesAutoscaleStandardand upNoAutomatic scalingHTTP-driven, per appPremium v2 to v4One scale-out method per plan

Cheat sheet

  • An App Service plan supplies the operating system, region, and compute for its apps
  • Dedicated plan compute is isolated from other customers but shared among the plan's apps
  • Dedicated App Service charges follow allocated plan workers rather than app activity
  • Select a plan tier by required features and storage before choosing its worker size
  • An app can change plans only within a compatible deployment unit
  • Unsupported App Service scale units require redeployment to obtain zone redundancy
  • Choose a built-in runtime or custom container to match the application's execution requirements
  • App settings inject runtime values and override application-file settings
  • PowerShell settings replacement and typed connection strings need explicit handling
  • Always On keeps the app loaded rather than increasing its replica count
  • Classic custom-container routing needs the port where the application actually listens
  • Custom-container persistence depends on the storage setting and the path used
  • App Service must explicitly select managed-identity credentials for private image pulls
  • App Service registry continuous deployment restarts the app to retrieve a pushed image
  • App Service container logs distinguish deployment progress from a ready application
  • Built-in App Service authentication signs in incoming users without adding an authentication SDK
  • Per-app scaling limits worker placement without changing the plan's purchased capacity
  • Scale up changes worker capabilities while scale out changes worker count
  • Autoscale and automatic scaling are different App Service scaling engines
  • Always-ready, maximum burst, and prewarmed capacity govern different scaling boundaries
  • HTTP automatic scaling excludes slot traffic and Function-mixed plans and works best without affinity
  • Custom-domain TLS requires a usable private certificate rather than a public certificate upload
  • Free managed certificates suit supported public hostnames but not wildcard or export requirements
  • SNI shares an IP across certificates while IP-based TLS allocates a dedicated IP
  • HTTPS redirects and minimum TLS settings enforce different transport requirements
  • Key Vault certificate import needs App Service provider access and supports automatic synchronization
  • Replacing an uploaded certificate in its binding avoids unnecessary address changes
  • The default App Service hostname already has platform-provided TLS coverage
  • Root domains use A records while subdomains and wildcards generally use CNAME
  • The asuid TXT record proves ownership rather than routing requests
  • DNS routing and App Service hostname registration must both be configured
  • Prebinding a live domain allows validation before DNS traffic cutover
  • Automatic backups provide fixed local recovery while custom backups provide configurable storage
  • Custom backup schedules have separate size, frequency, and retention controls
  • Custom backup storage requires SAS authorization rather than managed identity
  • Native database backups replace the retiring linked-database backup workflow
  • Custom backup exclusions also preserve the excluded target files during restore
  • App restore stops its target and does not reconstruct every associated resource
  • Firewall-protected backup storage needs the backup-over-VNet option and network access
  • App Service VNet integration supplies outbound access rather than private inbound access
  • Integration subnet sizing must accommodate scale transitions as well as steady-state workers
  • All-traffic routing is needed when internet egress must traverse the integration network
  • Access restrictions evaluate the lowest priority number first and can implicitly deny unmatched requests
  • Subnet-based public access restrictions use Microsoft.Web service endpoints rather than private IP matching
  • A private endpoint and public access can coexist until public access is disabled
  • Private endpoint access needs private DNS for both the app and its deployment endpoint
  • Network-protected App Service image pulls need their own VNet routing configuration
  • Downstream firewall rules must use the app's outbound address set rather than its inbound address
  • The AppService service tag represents multitenant inbound destinations rather than app egress sources
  • App Service inbound IP mode changes DNS answers rather than disabling a protocol endpoint
  • Deployment slots are live apps with distinct hostnames rather than copied content by default
  • Slot swaps prepare the source before switching production routing
  • Slot-specific settings keep environment configuration attached to its slot
  • Swap with preview validates the source under target settings before completing routing changes
  • Auto swap promotes code after warm-up but does not support Linux or container web apps
  • Slot traffic percentages and affinity route real users without swapping content
  • Custom swap warm-up must specify acceptable responses when mere reachability is insufficient

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. https://learn.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore
  2. https://learn.microsoft.com/en-us/azure/app-service/overview-hosting-plans
  3. https://learn.microsoft.com/en-us/azure/app-service/app-service-plan-manage
  4. https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-104
  5. https://learn.microsoft.com/en-us/azure/virtual-machines/overview
  6. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-intro
  7. https://learn.microsoft.com/en-us/azure/container-apps/compare-options
  8. https://learn.microsoft.com/en-us/azure/app-service/environment/overview
  9. https://learn.microsoft.com/en-us/azure/app-service/webjobs-create
  10. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits
  11. https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain
  12. https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings
  13. https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots
  14. https://learn.microsoft.com/en-us/azure/app-service/manage-scale-up
  15. https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service
  16. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/app-service-move-limitations
  17. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-powershell
  18. https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service-environment
  19. https://learn.microsoft.com/en-us/azure/app-service/configure-zone-redundancy
  20. https://learn.microsoft.com/en-us/azure/app-service/manage-automatic-scaling
  21. https://learn.microsoft.com/en-us/azure/app-service/manage-scale-per-app
  22. https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container
  23. https://learn.microsoft.com/en-us/azure/app-service/configure-common
  24. https://learn.microsoft.com/en-us/azure/app-service/manage-backup
  25. https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization
  26. https://learn.microsoft.com/en-us/azure/app-service/overview-managed-identity
  27. https://learn.microsoft.com/en-us/azure/app-service/configure-sidecar
  28. https://learn.microsoft.com/en-us/azure/app-service/quickstart-custom-container
  29. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-disable-authentication-as-arm
  30. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-rbac-abac-repository-permissions
  31. https://learn.microsoft.com/en-us/azure/app-service/deploy-ci-cd-custom-container
  32. https://learn.microsoft.com/en-us/azure/dns/dns-zones-records
  33. https://learn.microsoft.com/en-us/azure/architecture/best-practices/host-name-preservation
  34. https://learn.microsoft.com/en-us/azure/app-service/manage-custom-dns-migrate-domain
  35. https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate
  36. https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-app-service-certificate
  37. https://learn.microsoft.com/en-us/azure/app-service/overview-private-endpoint
  38. https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  39. https://learn.microsoft.com/en-us/azure/app-service/overview-vnet-integration
  40. https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
  41. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-overview
  42. https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview
  43. https://learn.microsoft.com/en-us/azure/azure-functions/functions-premium-plan
  44. https://learn.microsoft.com/en-us/azure/app-service/overview-inbound-outbound-ips
  45. https://learn.microsoft.com/en-us/azure/app-service/overview-access-restrictions
  46. https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions
  47. https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/faqs-app-service-linux