AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The azure-reliability skill provides a structured approach to auditing and improving the resilience of Azure Functions and App Service applications. It performs a comprehensive scan of deployed resources to identify gaps in zone redundancy, storage replication, health probe configuration, and multi-region failover readiness. The skill guides users through a staged remediation process, offering either direct CLI-based fixes or IaC patches for Bicep and Terraform, ensuring that reliability improvements are both effective and persistent.
What it does
- Scans Azure Functions and App Service resources for reliability gaps.
- Generates a feature-pivoted reliability assessment checklist.
- Provides staged remediation for zone redundancy and health probes.
- Supports both direct CLI execution and IaC patching for persistent configuration.
- Facilitates multi-region failover setup using Azure Front Door.
- Ensures user consent before applying changes or modifying source code.
When to use it
- When you need to assess the reliability posture of your Azure PaaS applications.
- When you want to enable zone redundancy for your App Service plans or Function apps.
- When you need to identify and fix single points of failure in your infrastructure.
- When you are preparing for disaster recovery and want to set up multi-region failover.
Advantages
- Provides a clear, feature-based view of reliability status rather than raw resource lists.
- Offers a safe, staged approach to remediation with explicit user confirmation.
- Supports both live CLI fixes and long-term IaC maintenance.
- Includes built-in safety checks for cost and downtime implications.
Usage examples
- “Assess the reliability of my Function app.”
- The agent scans the resource group, identifies the Function app and its storage, and presents a table showing the status of zone redundancy, storage, and health probes.
- “Make my app service plan zone redundant.”
- The agent identifies the plan, confirms the change, and provides options to apply the fix via CLI or by patching the existing Bicep/Terraform files.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/microsoft/azure-reliability/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip azure-reliability.zip -d .agents/skills
Documentation by Microsoft
Azure Reliability Assessment & Configuration
Quick Reference
| Property | Details |
|---|---|
| Best for | Reliability posture assessment, zone redundancy enablement, multi-region failover setup |
| Primary capabilities | Reliability assessment table, Zone Redundancy Configuration, Multi-Region IaC Generation |
| Supported services | Azure Functions, App Service (Container Apps planned for a future version) |
| MCP tools | Azure Resource Graph queries, Azure CLI commands |
When to Use This Skill
Activate this skill when user wants to:
"Assess my Function app's reliability"
"Assess my Web app's reliability"
"Check the reliability of my resource group" (App Service and Functions resources only)
"Is my app zone redundant?" (App Service and Functions resources only)
"Is my app service plan zone redundant?"
"Make my app zone redundant" (App Service and Functions resources only)
"Make my app service plan zone redundant"
"Set up multi-region failover for my app" (App Service and Functions resources only)
"Check my reliability posture"
"Find single points of failure" (App Service and Functions resources only)
"Enable high availability for my app" (App Service and Functions resources only)
"Check disaster recovery readiness"
"Improve my app's resilience" (App Service and Functions resources only)
Scope note: This skill currently covers Azure Functions and Azure App Service only. If the user asks about Azure Container Apps reliability, acknowledge that support is planned but not yet available, and only proceed with the parts that apply to App Service and Functions resources in scope.
Prerequisites
Authentication: user is logged in to Azure via
az loginPermissions: Reader access on target subscription/resource group (for assessment)
Permissions: Contributor access (for configuration changes)
Azure Resource Graph extension:
az extension add --name resource-graph
MCP Tools
| Tool | Purpose |
|---|---|
mcp_azure_mcp_extension_cli_generate | Generate az CLI commands for resource queries and configuration |
mcp_azure_mcp_subscription_list | List available subscriptions |
mcp_azure_mcp_group_list | List resource groups |
Primary query method: Azure Resource Graph via az graph query (requires az extension add --name resource-graph).
Assessment Workflow
Phase 1: Discover Resources
Identify scope — Ask user for resource group, subscription, or app name
Query Azure Resource Graph to discover all resources in scope
Classify resources by service type (Functions, Storage, etc.). If Container Apps is found, note it but do not deep-dive.
Important: Always scope queries to the user's specified resource group or subscription. Add these filters to every Resource Graph query:
Resource group:
| where resourceGroup =~ '<rg-name>'Subscription: Use
--subscriptions <sub-id>flag onaz graph queryApp name:
| where name =~ '<app-name>'
Phase 2: Assess Reliability
Two-step assessment: platform-level discovery first, then per-service deep dive.
Step 1 — Platform discovery (find what's there). Use these to enumerate resources in scope and detect cross-cutting reliability gaps:
| Platform check | Reference |
|---|---|
| Zone redundancy — discovery | references/zone-redundancy-checks.md |
| Storage redundancy (cross-service) | references/storage-redundancy-checks.md |
| Multi-region & global load balancers | references/multi-region-checks.md |
| Front Door / Traffic Manager / App Insights probes | references/health-probe-checks.md |
Step 2 — Per-service deep dive. For each compute resource discovered in Step 1, load the matching service reference. The service reference is the single source of truth for that service's plan/SKU rules, assessment queries, CLI commands, IaC patches (Bicep + Terraform + AVM), and reporting hints.
This skill version ships only the Azure Functions and App Service per-service references. Other compute services are listed below explicitly so the dispatch logic is unambiguous: if a resource matches an unsupported row, do not attempt to load a reference, fabricate CLI commands, or generate IaC patches for it.
| Service detected | Reference |
|---|---|
Azure Functions (microsoft.web/serverfarms with kind contains 'functionapp') | references/services/functions/reliability.md |
Azure App Service (non-Functions sites: microsoft.web/sites without kind contains 'functionapp', microsoft.web/serverfarms without kind contains 'functionapp') | references/services/app-service/reliability.md |
Azure Container Apps (microsoft.app/containerapps, microsoft.app/managedenvironments) | ⚪ Not yet shipped — planned for a future version |
Handling unsupported services: If a resource matches an unsupported row above, surface it in the discovery summary, mark it as
⚪ not assessed (planned)in the Phase 3 table, and skip the per-service remediation steps for it. Do not attempt to fabricate CLI commands or IaC patches for those services.
Phase 3: Generate Reliability Checklist
Present findings as a feature-pivoted table: one row per reliability feature (Zone redundancy on compute, Zone-redundant storage, Health probes, Multi-region failover), with a single status indicator and the specific resources that are relevant to that feature. This avoids the noise of one-row-per-resource with mostly n/a cells. Do not assign numeric scores or grades.
🔍 Reliability Assessment — {scope}
─────────────────────────────────────────────────────────────────────────────────────────────
Reliability Feature Status Resources
─────────────────────────────────────────────────────────────────────────────────────────────
Zone redundancy — compute 🔴 OFF • plan-web-ii5trxva2ark4 (P1v3)
• plan-ii5trxva2ark4 (FC1)
Zone-redundant storage 🔴 GRS • stii5trxva2ark4 (defaulted; no SKU set in IaC)
Health probes 🔴 OFF • func-api-ii5trxva2ark4 — needs code change (FC1)
• app-web-ii5trxva2ark4 — no health check path
Multi-region failover 🔴 OFF • Single region (eastus) only — Front Door not configured
─────────────────────────────────────────────────────────────────────────────────────────────
Want me to fix the 🔴 items? I'll do the quick wins first (App
plan zone redundancy + health checks on supported plans), then ask before
storage migration and multi-region setup. (yes/no)Rules for the table:
Four feature rows, in this order: Zone redundancy — compute · Zone-redundant storage · Health probes · Multi-region failover. Omit a row entirely only if no resource in scope could ever apply to it.
Status column is one symbol + one short word, no other characters:
🟢 ON— feature is fully enabled across all relevant resources in scope🟡 PARTIAL— some resources have it, some don't (or partial config like liveness-only)🔴 OFF— feature is missing on all relevant resourcesFor storage, replace
OFFwith the current SKU when relevant (🔴 LRS,🔴 GRS,🟢 ZRS,🟢 GZRS). When no SKU is set in IaC, label as🔴 GRS(ARM/AVM default) and note that in the resource line.
Resources column lists only what's relevant to that feature, one bullet per resource:
For "needs fixing" resources, include a short inline reason (
(FC1),(defaulted; no SKU set),liveness only,needs code change (FC1)).For resources that are already ON for that feature, mention them on the same row with
— already ONso the user sees credit for what's right.
Do not include
n/a,—, or empty cells. If a feature doesn't apply to any resource in scope, drop the row.Do not include numeric scores, grades, or point totals.
End the assessment with a single yes/no question that kicks off the staged remediation flow. Do not enumerate the per-resource fix list here — the user will see it after they say yes (Configuration Workflow Step 1).
UX Note: If the assessment finds the app already has all core reliability features (zone redundancy, ZRS/GZRS storage, health probes), skip the fix-it question and jump straight to Configuration Workflow Step 3 (Multi-region follow-up). Do NOT start any multi-region work without explicit consent.
Configuration Workflow
When user wants to fix findings from the assessment:
⛔ ALWAYS confirm with user before executing changes. Show what will change, any cost implications, and any destructive actions (e.g., environment recreation).
Step 1: Present Fix Plan + Choose Path
After assessment, if user says "fix it" / "improve my reliability" / "enable zone redundancy":
List each fixable finding with the specific action
Flag any cost implications or breaking changes
Ask user which path they want:
I'll start with the quick wins (no downtime, fast):
1. ✏️ Enable zone redundancy on plan-ii5trxva2ark4 (Flex Consumption — no cost change)
2. ✏️ Set health check path to /api/health on func-api-ii5trxva2ark4
Then, separately, I'll ask if you want to upgrade storage:
3. 🕒 Upgrade stii5trxva2ark4 from LRS → ZRS (small cost increase, migration takes hours)
— Required for full zone redundancy, but I'll confirm with you before starting.
How would you like to apply these changes?
A) Fix now — Run az CLI commands against your live resources (immediate, one-time)
B) Patch my IaC — Update your Bicep/Terraform files so changes persist across deploys
(If you use azd or Terraform, option B is recommended so `azd up` won't overwrite changes.)Path A: Fix Now (CLI)
Run fixes against live resources using az CLI commands. Quick wins first, then ask before the slow storage migration.
The exact CLI commands per service live in the per-service references — pick the one(s) matching the resources discovered in Phase 2:
| Fix | Reference |
|---|---|
| Enable zone redundancy / configure health probes (Functions) | references/services/functions/reliability.md |
| Enable zone redundancy / configure health probes (App Service) | references/services/app-service/reliability.md |
| Upgrade storage replication (cross-service) | references/configure-storage.md |
| Set up multi-region (cross-service) | references/configure-multi-region.md |
| Platform overview / verification | references/configure-zone-redundancy.md, references/configure-health-probes.md |
Execution order — always quick wins first:
Zone redundancy on compute (fast, in-place property update on the App's plan).
Health probes (Premium / Dedicated only — in-place; for FC1 / Consumption, follow the consent gate in configure-health-probes.md).
Verify the compute changes succeeded before doing anything else.
⛔ STOP — Ask about storage upgrade. Compute is now zone-redundant, but storage may still be LRS or GRS. Ask the user explicitly:
✅ Compute is now zone-redundant. To be **fully zone-redundant**, your storage account also needs to be upgraded: • stii5trxva2ark4: currently `Standard_LRS` → needs `Standard_ZRS` ⚠️ This is a live storage redundancy conversion: • Takes hours to days depending on data volume • Small ongoing cost increase (~$0.01/GB/month more) • Only supported for Standard general-purpose v2 accounts Do you want me to start the storage migration now? (yes / no / later)yes → run
az storage account update --sku Standard_ZRS(ormigration startif needed); pollaz storage account show --query sku.nameuntil it reportsStandard_ZRS.no / later → leave storage as-is; note in the re-assessment that ZR storage remains a gap.
Multi-region — do NOT auto-run. Handled in Step 3 below as an explicit follow-up after re-assessment.
⚠️ Warning: If the user uses
azd uporterraform applylater, CLI-only changes may be overwritten by the IaC definitions. Recommend also patching IaC after CLI fixes.
Path B: Patch IaC
Update the user's Bicep or Terraform files so reliability settings are persistent.
Step 1: Detect IaC type
Look for
infra/folder in project rootIf not found, check project root for
*.bicepor*.tffilesIf still not found, ask user: "Where are your IaC files located?"
Check for
*.bicepfiles → use Bicep patchingCheck for
*.tffiles → use Terraform patchingIf both exist, ask user which to patch
If no IaC exists, fall back to Path A (CLI) and inform user
Step 2: Classify each fix by risk level
| Fix | Risk Level | What Happens |
|---|---|---|
| Zone redundancy (App plan) | 🟢 Safe patch | In-place property update on next deploy |
| Storage LRS → ZRS | 🟡 Pre-migration required | Live storage migration must complete before the IaC SKU change can deploy. Never bundle with safe patches — use the two-deploy flow in Steps 3–5. |
| Health check path (Basic/Standard/Premium / Dedicated) | 🟢 Safe patch | In-place update, but causes app restart |
| Health check path (FC1 / Consumption) | ⚪ Code-only — ask first | healthCheckPath is unsupported. Adding a health endpoint requires adding an HTTP-triggered /api/health function to app code. Always ask the user for explicit consent before touching source code. Do not patch IaC. |
Step 3: Apply patches in two deploys (quick wins first)
The IaC patching framework (detection, AVM-module guidance, deploy-order rule, storage SKU patch) lives in:
| IaC Type | Framework reference |
|---|---|
| Bicep | references/iac-patching-bicep.md |
| Terraform | references/iac-patching-terraform.md |
The actual per-service compute patches (Function App plan ZR, App Service Plan ZR, etc.) live in the per-service references — load the matching service file from Phase 2 for the exact Bicep / Terraform / AVM snippets. Only Azure Functions and App Service have per-service references in this skill version; Container Apps is out of scope.
Deploy 1 — Quick wins only. Patch the 🟢 Safe items (zone redundancy on the App Service/Function App plan, health probes on Basic/Standard/Premium / Dedicated). Do NOT include the storage SKU patch in this deploy.
After patching, the skill runs the deploy itself (do not stop and tell the user to run it). Detect the deployment tool and confirm once before executing:
📦 Patches applied to your IaC. Ready to deploy:
Tool detected: azd (found azure.yaml)
Command: azd up
Proceed with deployment? (yes / no)On yes, run the appropriate command, stream output back to the user, and continue to the next step on success:
AZD project (has
azure.yaml):azd upBicep-only:
az deployment group create --resource-group <rg> --template-file infra/main.bicep --parameters @infra/main.parameters.jsonTerraform:
terraform plan -out tfplan→ (show plan summary) →terraform apply tfplan
On no, stop and report the patched files; do not proceed to Step 4 / Re-Assess.
If deployment fails, surface the error and stop — do not continue to the storage step.
⛔ STOP — Ask about storage upgrade before Deploy 2. After Deploy 1 succeeds, ask the user explicitly:
✅ Quick-win patches deployed. Compute is now zone-redundant.
To be **fully zone-redundant**, your storage account also needs to be upgraded:
• stii5trxva2ark4: currently `Standard_LRS` → needs `Standard_ZRS`
⚠️ This is a two-part change:
1. Live storage migration (`az storage account migration start`) — takes hours to days
2. A second deploy to update your IaC's storage SKU to match
Do you want me to start the storage migration now? (yes / no / later)yes → the skill runs the migration command itself, polls until complete, then patches the storage SKU in IaC and runs Deploy 2 (now a no-op confirmation). The user does not need to run anything manually.
no / later → leave the storage SKU patch unapplied. Note in the re-assessment that ZR storage remains a gap; suggest revisiting later.
Step 4: Storage migration (only if user said yes in Step 3)
The skill runs these commands itself — do not ask the user to run them. Show progress as you go:
🔄 Starting storage migration (this can take up to 72 hours)...
az storage account migration start --name stii5trxva2ark4 \
--resource-group rg-example --sku Standard_ZRS --no-wait
Polling: az storage account show --name stii5trxva2ark4 --query sku.name
...
✅ Migration complete: sku.name = Standard_ZRSFor very long migrations, you may surface a checkpoint to the user ("this is still running, check back later") rather than blocking the entire conversation.
Step 5: Deploy 2 — storage SKU patch
After the migration completes, the skill patches the storage SKU in IaC and runs the same deploy command as Step 3 (e.g. azd up). This deploy is a no-op confirmation that the IaC matches the live state. Confirm once with the user before executing, then run it directly.
Step 2 (both paths): Re-Assess
After changes are applied (CLI) or deployed (IaC), automatically re-run the assessment and show the same feature-pivoted table as Phase 3, with each feature row's status updated to reflect the new state. Briefly call out what changed since the previous run.
🔄 Reliability Re-Assessment — rg-eventhubs-python-jan13 (eastus)
───────────────────────────────────────────────────────────────────────────────────────
Reliability Feature Status Resources
───────────────────────────────────────────────────────────────────────────────────────
Zone redundancy — compute 🟢 ON • plan-ii5trxva2ark4 (FC1) — now ON
• plan-web-ii5trxva2ark4 (P1v3) — now ON
Zone-redundant storage 🟢 ZRS • stii5trxva2ark4 — GRS → ZRS
Health probes 🟡 PARTIAL • func-api-ii5trxva2ark4 — still off (FC1, code change declined)
• app-web-ii5trxva2ark4 — now ON
Multi-region failover 🔴 OFF • Single region (eastus) only
───────────────────────────────────────────────────────────────────────────────────────
What changed: Function App and App Service plan zone redundancy, storage replication and health probes on App Service.
(Multi-region offered next — see Step 3.)Step 3 (both paths): Multi-region follow-up — ASK and WAIT
Multi-region is a significant cost/complexity step. Do NOT start it automatically. After re-assessment, only if all core single-region reliability features are 🟢 ON (zone-redundant compute, ZRS/GZRS storage, health probes), explicitly ask the user and wait for their response before doing anything:
🟢 Your app is now fully zone-redundant in {region}.
The next step (optional) is multi-region failover with Azure Front Door:
• Deploys compute + storage in a second region (paired region recommended)
• Adds Azure Front Door for global load balancing with health-probe-driven failover
• Protects against full region outages
• Estimated additional cost: ~2x compute (active-passive); Front Door ~$35/month base
Do you want me to set up multi-region failover now? (yes / no / later)yes → proceed with references/configure-multi-region.md. Confirm secondary region choice with the user, then:
Generate the multi-region IaC (Bicep / Terraform additions for the secondary region + Front Door).
Confirm once with the user:
📦 Multi-region IaC generated. Ready to deploy with \azd up`. Proceed? (yes / no)`On yes, the skill runs the deploy itself (
azd up/az deployment group create/terraform apply) and streams output. Do not stop and tell the user to run it.After successful deploy, run a final re-assessment so the user sees Multi-region failover flip to 🟢 ON.
no / later → leave the deployment as-is. Note that single-region zone-redundant is a reliable end state; multi-region can be revisited anytime.
⛔ Do not skip the wait. Do not generate multi-region IaC, deploy a Front Door, or modify any files until the user has explicitly said yes. If core reliability is not yet all 🟢, do not ask about multi-region — finish the core gaps first.
Priority Classification
| Priority | Criteria | Action |
|---|---|---|
| Critical | No zone redundancy AND production workload | Fix immediately |
| High | LRS storage on zone-redundant compute | Fix within days |
| Medium | No multi-region (single region but zone-redundant) | Plan for next sprint |
| Low | Missing health probes or monitoring gaps | Track and fix |
Error Handling
| Error | Message | Remediation |
|---|---|---|
| Authentication required | "Please login" | Run az login and retry |
| Access denied | "Forbidden" | Confirm Reader/Contributor role assignment |
| Plan doesn't support ZR | "Upgrade required" | Inform user of plan upgrade path + cost delta |
| Region doesn't support AZ | "Region limitation" | Suggest supported regions |
Best Practices
Run reliability assessments after every significant infrastructure change
Test failover scenarios periodically (at least quarterly)
Skill Boundaries
| Action | This skill does | Hand off to |
|---|---|---|
| Assess reliability posture | ✅ Yes | — |
| Recommend improvements | ✅ Yes | — |
| Enable zone redundancy (CLI commands) | ✅ Yes | — |
| Patch Bicep/Terraform for reliability | ✅ Yes | — |
| Generate multi-region IaC | ✅ Yes (additions for the secondary region + Front Door) | azure-prepare for full new-app IaC scaffolding |
| Deploy IaC for reliability changes | ✅ Yes (runs azd up / terraform apply / az deployment itself, after user confirmation) | azure-deploy for general/non-reliability deploys |
| Validate pre-deployment | Reliability checks only | azure-validate for full validation |
Files
- ATTRIBUTION.mdAdded by AutoGineer983 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md24.3 KiB
- references/configure-health-probes.md2.1 KiB
- references/configure-multi-region.md18.5 KiB
- references/configure-storage.md5.4 KiB
- references/configure-zone-redundancy.md1.9 KiB
- references/health-probe-checks.md3.5 KiB
- references/iac-patching-bicep.md6.9 KiB
- references/iac-patching-terraform.md4.7 KiB
- references/multi-region-checks.md6.0 KiB
- references/services/app-service/reliability.md10.2 KiB
- references/services/functions/reliability.md6.2 KiB
- references/storage-redundancy-checks.md5.1 KiB
- references/zone-redundancy-checks.md2.9 KiB
references/services/app-service/reliability.md
Azure App Service — Reliability Reference
Supported Plans & Zone Redundancy
| Plan | Zone Redundancy | Min Instances | Health Check |
|---|---|---|---|
| Free/Shared (F1/D1) | ❌ Not supported | N/A | ❌ |
| Basic (B1/B2/B3) | ❌ Not supported | N/A | ✅ |
| Standard (S1/S2/S3) | ❌ Not supported | N/A | ✅ |
| Premium v2 (P1v2+) | ✅ zoneRedundant: true + capacity: 2 | 2 | ✅ |
| Premium v3 (P0v3+) | ✅ zoneRedundant: true + capacity: 2 | 2 (recommended) | ✅ |
| Premium v4 (P0v4+) | ✅ zoneRedundant: true + capacity: 2 | 2 (recommended) | ✅ |
| Isolated v2 (I1v2+) | ✅ zoneRedundant: true + capacity: 2 | 2 | ✅ |
Assessment Queries
⚠️ Output format: Use
--query "data[]" -o jsonforaz graph query.-o tableonly shows summary columns (Count,Total_records) and hides projected fields. Standardaz webappcommands work fine with-o table.
Plan Zone Redundancy
az graph query -q "
resources
| where resourceGroup =~ '<rg>'
| where type =~ 'microsoft.web/serverfarms'
| where kind !contains 'functionapp'
| project name, sku=sku.name, capacity=sku.capacity, zoneRedundant=properties.zoneRedundant, location
" --subscriptions <sub-id> --query "data[]" -o jsonHealth Check Configuration
az webapp config show --name <app> --resource-group <rg> \
--query "{healthCheckPath:healthCheckPath, alwaysOn:alwaysOn}" -o tableClient Affinity (ARR Affinity) — should be disabled for ZR / multi-region
az webapp show --name <app> --resource-group <rg> \
--query "clientAffinityEnabled" -o tsvWhen true, sticky sessions pin clients to a single instance and defeat zone load balancing.
Deployment Slots (for zero-downtime deploys)
az webapp deployment slot list --name <app> --resource-group <rg> \
--query "[].{name:name, state:state}" -o tableAuto Heal
Auto Heal automatically restarts or mitigates your web app when it hits defined thresholds. Can be configured via Azure Portal, CLI or ARM/Bicep
Azure Portal - App Service -> Diagnose and solve problems -> Auto-heal (under Diagnostic Tools) or directly: App Service -> Configuration -> General settings -> Auto Heal
CLI
az webapp config set --resource-group <rg> --name <app> --auto-heal-enabled true
# Rules must be set via ARM PATCH (CLI doesn't expose autoHealRules directly)
az rest --method patch \
--uri "https://management.azure.com/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{app}/config/web?api-version=2022-03-01" \
--body '{"properties":{"autoHealEnabled":true,"autoHealRules":{...}}}'Configure: Zone Redundancy
Upgrade Plan (if needed)
# Check current SKU
az appservice plan show --name <plan> --resource-group <rg> --query "sku"
# Upgrade to Premium v3 (if currently on lower tier)
az appservice plan update \
--name <plan> \
--resource-group <rg> \
--sku P1v3Enable Zone Redundancy
# Set min instances (required for ZR)
az appservice plan update \
--name <plan> \
--resource-group <rg> \
--number-of-workers 2
# Enable ZR
az resource update \
--resource-group <rg> \
--name <plan> \
--resource-type "Microsoft.Web/serverfarms" \
--set properties.zoneRedundant=true⚠️ Enabling zone redundancy may require scaling up first — for the supported App Service plans listed above, set the plan to at least 2 instances before enabling ZR.
Configure: Health Check
# Enable health check
az webapp config set \
--name <app> \
--resource-group <rg> \
--generic-configurations '{"healthCheckPath": "/api/health"}'⚠️ Warning: Enabling health check causes an app restart. Configure during maintenance window.
Health Check Behavior
Ping interval: 1 minute
Failure threshold: 10 consecutive failures (configurable via
WEBSITE_HEALTHCHECK_MAXPINGFAILURES)After threshold: instance marked unhealthy, replaced within 1 hour
Healthy threshold: 1 successful response restores instance
Recommended: Always On
az webapp config set \
--name <app> \
--resource-group <rg> \
--always-on trueConfigure: Disable Client Affinity (ARR Affinity)
App Service enables ARR affinity by default, which pins each client to a single instance via the ARRAffinity cookie. This defeats zone-load-balancing and any multi-region routing, so it should be disabled for stateless apps:
az webapp update --name <app> --resource-group <rg> \
--client-affinity-enabled falseLeave it on only if your app stores state in instance memory and you cannot move it to a shared cache / database.
Configure: Deployment Slots (Zero-Downtime)
Deployment slots complement reliability by enabling safe deployments:
# Create staging slot
az webapp deployment slot create \
--name <app> \
--resource-group <rg> \
--slot staging
# Deploy to staging first, then swap
az webapp deployment slot swap \
--name <app> \
--resource-group <rg> \
--slot staging \
--target-slot productionBack Up Support by SKU
| Plan | Automatic Backup | Custom Backup |
|---|---|---|
| Free/Shared (F1/D1) | ❌ Not supported | ❌ Not supported |
| Basic (B1/B2/B3) | ✅ | ✅ Configuration required |
| Standard (S1/S2/S3) | ✅ | ✅ Configuration required |
| Premium v2 (P1v2+) | ✅ | ✅ Configuration required |
| Premium v3 (P0v3+) | ✅ | ✅ Configuration required |
| Premium v4 (P0v4+) | ✅ | ✅ Configuration required |
| Isolated v2 (I1v2+) | ✅ | ✅ Configuration required |
Automatic backups recommended since requires no configuration and is automatically enabled
IaC Patching: Bicep
AVM modules: If the project uses
br/public:avm/res/web/serverfarmorbr/public:avm/res/web/site, the parameter names differ from raw ARM (e.g.zoneRedundantandskuCapacityare top-level params;siteConfigis usually preserved). Always grep the actual module call (Select-String -Path infra -Recurse -Pattern "avm/res/web/" -Context 0,15) and patch the params already in use. The raw-Bicep examples below show the property paths to translate.
App Service Plan
resource appServicePlan 'Microsoft.Web/serverfarms@2023-12-01' = {
name: planName
location: location
sku: {
name: 'P0v3'
capacity: 2 // ← ADD (min 2 for ZR on P1v3)
}
properties: {
reserved: true // Linux
zoneRedundant: true // ← ADD
}
}Web App — Health Check
resource webApp 'Microsoft.Web/sites@2023-12-01' = {
name: appName
location: location
properties: {
serverFarmId: appServicePlan.id
siteConfig: {
healthCheckPath: '/api/health' // ← ADD
alwaysOn: true // ← ADD (recommended)
}
}
}IaC Patching: Terraform
App Service Plan
resource "azurerm_service_plan" "plan" {
name = var.plan_name
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
os_type = "Linux"
sku_name = "P1v3"
worker_count = 2 # ← ADD (min 2 for ZR)
zone_balancing_enabled = true # ← ADD
}Web App — Health Check
resource "azurerm_linux_web_app" "app" {
name = var.app_name
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
service_plan_id = azurerm_service_plan.plan.id
site_config {
health_check_path = "/api/health" # ← ADD
always_on = true # ← ADD
}
}Virtual Network Integration notes
Subnet sizing is important. VNet integration consumes IPs during scale-out slot swaps.
Undersized subnet cause scale or deployment failures during regional stress or failover. Recommend /26 minimum, /24 for larger plans. Zone Redundant plans require integration subnet to be sized for Zone Redundancy (more IPs).
Subnets cannot be resized after assignment without reconfiguring VNET integration.
Dependencies reached over private endpoints must have a per-region private endpoint and private DNS Zone. Sharing a single or global private DNS zone linked to the primary VNET will break failover.
Recommend Azure DNS Private Resolver per region, or per-region forwarders. Verify WEBSITE_DNS_SERVER/WEBSITE_DNS_ALT_SERVER are set with a fallback.
For predictable outbound traffic flow during failover, attach NAT Gateway to the subnet in each region to enable partner allow lists to work for all regions. Use Nat Gateway to avoid SNAT port exhaustion under load.
Service Endpoints vs Private Endpoints - Service endpoints are regional and don't failover. Use Private Endpoints per region for resiliency.
Multi-Region Notes
App Service supports deployment slots — use slot swap for safe regional deployments
Consider auto-scale rules to handle failover traffic surge
App Service Managed Certificates don't support custom domains on Front Door — use App Service Certificate or Key Vault
Client affinity (ARR Affinity) must be disabled for multi-region (see Configure: Disable Client Affinity above)
App Service Environment (v3) live in one subnet and is regional; multi-region still requires one ASE per region with Azure Front Door/Traffic Manager in front.
Reporting (for the assessment table)
When the parent skill builds the feature-pivoted assessment table, report each App Service resource on the relevant rows:
| Feature row | What to report |
|---|---|
| Zone redundancy — compute | 🟢 ON if the plan has zoneRedundant: true AND sku.capacity ≥ 2. 🔴 OFF if either is missing or the plan tier doesn't support ZR (Free / Shared / Basic / Standard). Annotate (needs plan upgrade) for unsupported tiers. |
| Health probes | 🟢 ON if siteConfig.healthCheckPath is set on the app. 🔴 OFF if empty. Basic tier and above support it; Free/Shared do not — annotate (needs plan upgrade) in that case. |
| Multi-region failover | 🟢 ON if the same app is deployed in ≥2 regions behind Front Door / Traffic Manager. 🟡 PARTIAL if multi-region is set up but clientAffinityEnabled is still true (sticky sessions break failover). 🔴 OFF otherwise. |
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs a command-line tool, Needs Python
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/skills · .github/plugins/azure-skills/skills/azure-reliability · commit 0696600
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from .github/plugins/azure-skills/LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Also distributed in
- microsoft/azure-skills
AutoGineer is not affiliated with or endorsed by Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download azure-reliability.zip