Operations¶
Production operations and day-2 practices for Azure App Service. This section is language-agnostic and focuses on platform behavior, reliability, security, and cost control.
Main Content¶
Operations Navigation Overview¶
flowchart TD
A[Operations Start] --> B[Scaling]
A --> C[Deployment Slots]
A --> D[Health and Recovery]
A --> E[Backup and Restore]
A --> F[Networking]
A --> G[Security]
A --> H[Cost Optimization] Operations Documents¶
| Document | Description |
|---|---|
| Scaling | Scale up, scale out, autoscale profiles, and operational verification |
| Deployment Methods | ZIP deploy, GitHub Actions, container delivery, and slot-based promotion choices |
| Deployment Slots | Staging slots, swap workflows, canary routing, and rollback patterns |
| Health and Recovery | Health checks, auto-heal, runbooks, and incident recovery controls |
| Backup and Restore | Scheduled backup configuration, restore drills, and DR planning |
| Networking | Access restrictions, private endpoints, VNet integration, and DNS diagnostics |
| Incoming Client Certificates | Enable, verify, and troubleshoot inbound mutual TLS on App Service |
| Outbound Client Certificates | Upload, load, and rotate client certificates for outbound mTLS calls |
| Security | Identity, authentication, TLS hardening, secrets handling, and governance |
| Cost Optimization | Right-sizing, autoscale economics, environment cleanup, and FinOps cadence |
Quick Operational Commands¶
az webapp show --resource-group $RG --name $APP_NAME --output json
az webapp restart --resource-group $RG --name $APP_NAME --output json
az appservice plan show --resource-group $RG --name $PLAN_NAME --output json
az monitor autoscale show --resource-group $RG --name "autoscale-$PLAN_NAME" --output json
| Command | Description |
|---|---|
az webapp show --resource-group $RG --name $APP_NAME --output json | Retrieves the current control-plane state of the web app so you can inspect its configuration and status. |
az webapp restart --resource-group $RG --name $APP_NAME --output json | Restarts the web app process on App Service when you need a manual recovery action. |
az appservice plan show --resource-group $RG --name $PLAN_NAME --output json | Retrieves the App Service plan definition, including the current SKU and capacity settings. |
az monitor autoscale show --resource-group $RG --name "autoscale-$PLAN_NAME" --output json | Retrieves the autoscale setting that governs how the App Service plan scales. |
Advanced Topics¶
- Build an SLO-based operating model that maps each control (scale, slots, recovery, security) to measurable service outcomes.
- Keep runbooks and IaC synchronized so recovery steps are deterministic during incidents.
- Validate production controls regularly through game days and restore exercises.
Language-Specific Details¶
For language-specific operational guidance, see: - Node.js Guide - Python Guide - Java Guide - .NET Guide