Azure App Service: Plans, Web Apps, Deployment Slots, Scaling, Custom Domains, TLS and Networking

Microsoft Certified Azure Administrator Associate AZ 103 60 min min read Updated: Nov 17, 2026 Intermediate
Azure App Service: Plans, Web Apps, Deployment Slots, Scaling, Custom Domains, TLS and Networking
Intermediate Topic 1 of 3

Plans and Apps

  • An App Service plan defines the region, VM size, instance count and features. It is the billing unit
  • Several web apps can share one plan (they share its CPU and memory)
  • Supports .NET, Java, Node.js, Python, PHP and custom containers
TierFeatures
Free / SharedDev and learning, limits, no scale out
BasicDedicated VM, manual scale, custom domain and TLS
StandardAutoscale, deployment slots, backups
Premium v3More power, more slots, zone redundancy, VNet features
Isolated (App Service Environment)Single-tenant, inside your VNet, highest scale
bash az group create -n rg-web -l centralindia az appservice plan create -g rg-web -n plan-web --sku S1 --is-linux az webapp create -g rg-web -p plan-web -n webapp-demo-482 --runtime "NODE:20-lts" az webapp list -g rg-web -o table az webapp browse -g rg-web -n webapp-demo-482

Settings and Deployment

bash az webapp config appsettings set -g rg-web -n webapp-demo-482 --settings API_URL=https://api.example.com ENV=prod az webapp deploy -g rg-web -n webapp-demo-482 --src-path app.zip --type zip az webapp deployment source config -g rg-web -n webapp-demo-482 --repo-url https://github.com/org/repo --branch main --manual-integration az webapp log tail -g rg-web -n webapp-demo-482
  • App settings become environment variables. Mark them as slot settings to keep them with the slot
  • Store secrets with Key Vault references
  • Deploy from ZIP, GitHub Actions, Azure DevOps, FTPS, or containers

Deployment Slots

A slot is a live copy of your app with its own URL (for example webapp-demo-482-staging). Deploy to staging, test, then swap to production with no downtime.

bash az webapp deployment slot create -g rg-web -n webapp-demo-482 --slot staging az webapp deploy -g rg-web -n webapp-demo-482 --slot staging --src-path app.zip --type zip az webapp deployment slot swap -g rg-web -n webapp-demo-482 --slot staging --target-slot productio
  • Swap warms up the staging instances first, then switches routing. Swap back to roll back
  • Traffic routing can send a percentage of users to a slot (testing in production)
  • Slots need Standard tier or above

Scaling

TypeMeaning
Scale upChange to a bigger plan size or tier
Scale outAdd instances (manual or autoscale rules)
bash az appservice plan update -g rg-web -n plan-web --sku P1V3 az appservice plan update -g rg-web -n plan-web --number-of-workers 3 az monitor autoscale create -g rg-web --resource plan-web --resource-type Microsoft.Web/serverfarms --name auto-plan --min-count 2 --max-count 6 --count 2 az monitor autoscale rule create -g rg-web --autoscale-name auto-plan --condition "CpuPercentage > 70 avg 10m" --scale out 1

Custom Domain and TLS

  1. Add the custom domain: create a CNAME (subdomain) or A + TXT verification record in DNS
  2. Validate the domain in the portal
  3. Add a certificate: App Service managed certificate (free), upload a PFX, or import from Key Vault
  4. Create a TLS/SSL binding and turn on HTTPS only

Networking and Protection

  • VNet integration: outbound traffic from the app to resources in a VNet
  • Private endpoint: inbound private access
  • Access restrictions: allow only listed IPs, VNets or Front Door
  • Backups: scheduled backups to a storage account (Standard and above)
  • Managed identity to reach Key Vault and SQL without passwords

Practice

  1. Create a plan and web app and open the URL
  2. Add a staging slot, deploy and swap
  3. Configure autoscale with CPU rules
  4. Turn on HTTPS only

Conclusion

App Service plans host web apps. Use slots for zero-downtime releases, scale up or out with autoscale, bind custom domains with TLS and secure with identity, access restrictions and private networking.

Quick Summary: plans; settings; slots; scaling; domains; networking.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators