56 results available
Sign in
Skills directory

azure-reliability

microsoft

·

Last changed
Hardened

This skill has been hardened by Chainguard

Last changed

This version passed the hardening gate. Hardening applied 28 targeted changes and preserved all other text. Classified findings before hardening: 4. Classified findings closed: 3. Classified findings remaining: 1. Unclassified scanner findings remaining: 0. Review findings closed: 18. Review findings remaining: 0.


Open before hardening

4

Medium
Open after hardening

1

Medium

Expand
File
Group
Subtype
Severity
Status
references/iac-patching-terraform.md

Tool & MCP Manipulation

MCP configuration abuse

Medium
Closed
SKILL.md

Tool & MCP Manipulation

MCP configuration abuse

Medium
Open
references/iac-patching-bicep.md

Tool & MCP Manipulation

MCP configuration abuse

Medium
Closed
SKILL.md

Excessive Agency & Rogue Autonomy

—

Medium
Closed

4 findings


SKILL.md

Azure Reliability Assessment & Configuration

Quick Reference

PropertyDetails

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)

Prerequisites

  • Authentication: user is logged in to Azure via az login
  • Permissions: Reader access on target subscription/resource group (for assessment)
  • Permissions: Contributor access (for configuration changes), scoped to the target resource group only; assessment-only runs need only Reader access. Run changes only against the resource group the user confirmed.
  • Azure Resource Graph extension: az extension add --name resource-graph (first check whether it is already installed, and ask the user before installing it)

MCP Tools

ToolPurpose

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).

Show any command produced by mcp_azure_mcp_extension_cli_generate to the user, and check that it is one of the az commands described in this skill and its references, before running it.

Assessment Workflow

Phase 1: Discover Resources

  1. Identify scope — Ask user for resource group, subscription, or app name
  2. Query Azure Resource Graph to discover all resources in scope
  3. Classify resources by service type (Functions, Storage, etc.). If Container Apps resources are found, note them but do not deep-dive — that service is planned for a future version of this skill. App Service and Functions resources get the full per-service deep dive in Phase 2.

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 on az graph query
  • App name: | where name =~ '<app-name>'

Validate user-supplied names against Azure naming rules (letters, digits, hyphens, underscores, periods and parentheses) and escape single quotes before placing them in a query. Echo the resolved resource IDs to the user before any remediation.

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 checkReference

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 detectedReference

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

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 resources
    • For storage, replace OFF with 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 ON so 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.
  • When the current storage SKU is GRS or RA-GRS, recommend GZRS or RA-GZRS rather than ZRS, so geo-redundancy is kept. If the user still picks ZRS, warn clearly that geo-redundancy will be lost.
  • 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).

Configuration Workflow

When user wants to fix findings from the assessment:

Step 1: Present Fix Plan + Choose Path

After assessment, if user says "fix it" / "improve my reliability" / "enable zone redundancy":

  1. List each fixable finding with the specific action
  2. Flag any cost implications or breaking changes — for App Service and Premium plans, state that zone redundancy needs at least 2 instances and the resulting cost increase or plan upgrade; state that setting a health check path restarts the app
  3. Ask user which path they want:
I'll start with the quick wins (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 (causes an app restart — schedule a maintenance window for production)

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:

FixReference

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:

  1. Zone redundancy on compute (fast, in-place property update on the App's plan).

  2. Health probes (Premium / Dedicated only — in-place; for FC1 / Consumption, follow the consent gate in configure-health-probes.md).

  3. Verify the compute changes succeeded before doing anything else.

  4. ⛔ 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 → first confirm with the account show query in configure-storage.md that the account kind is StorageV2 and the tier is Standard; then run the live migration command from that file (az storage account migration start) with the discovered account name and resource group, and report progress at checkpoints with az storage account migration show until az storage account show --query sku.name reports the target SKU.
    • no / later → leave storage as-is; note in the re-assessment that ZR storage remains a gap.
  5. Multi-region — do NOT auto-run. Handled in Step 3 below as an explicit follow-up after re-assessment.

Path B: Patch IaC

Update the user's Bicep or Terraform files so reliability settings are persistent.

Step 1: Detect IaC type

  1. Look for infra/ folder in project root
  2. If not found, check project root for *.bicep or *.tf files
  3. If still not found, ask user: "Where are your IaC files located?"
  4. Check for *.bicep files → use Bicep patching
  5. Check for *.tf files → use Terraform patching
  6. If both exist, ask user which to patch
  7. If no IaC exists, fall back to Path A (CLI) and inform user

Step 2: Classify each fix by risk level

FixRisk LevelWhat 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; restart required, so suggest a maintenance window for production

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. Show the code diff before writing it; the endpoint returns only a fixed OK response and its anonymous auth level is intentional. Run the project's local build or tests before any deploy. 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:

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. Health check path changes restart the app, so call that out in the confirmation.

After patching, the skill runs the deploy itself once the user approves. Detect the deployment tool, and before asking, show the user:

  • the patched file diff and the exact deploy command
  • the target subscription, resource group and, for azd, the environment
  • a preview of the changes: the terraform plan -out tfplan summary for Terraform, or a plain-words list of the resources each Bicep or azd deploy will change, with any deletes or replacements flagged
  • any hooks in azure.yaml, external Terraform modules or providers, and any custom execution blocks in the repository's IaC; ask the user to confirm they trust the repository

The approval covers only that exact command and preview. Stop and ask again if the preview includes changes beyond the reliability patches. The user may also choose to run the command themselves.

📦 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 up
  • Bicep-only: az deployment group create --resource-group <rg> --template-file infra/main.bicep --parameters @infra/main.parameters.json
  • Terraform: 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 after the checks in Step 4, reports progress at checkpoints, then patches the storage SKU in IaC and runs Deploy 2 (now a no-op confirmation) after its own confirmation.
  • 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)

Only after the user said yes in Step 3, run the following. Before starting, confirm with the account show query in configure-storage.md that the account kind is StorageV2 and the tier is Standard, then show the user the discovered account name, resource group, current SKU and target SKU. Replace the example names below with the discovered values. 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_ZRS

Report progress at checkpoints and hand control back 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. Before running it, show the storage SKU diff, the exact command and the target scope, and ask the user to approve that exact command. If the preview shows any change other than the storage SKU, stop and ask again.

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 → GZRS

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:
    1. Generate the multi-region IaC (Bicep / Terraform additions for the secondary region + Front Door). Then show the user the generated files, a preview of the changes, the new public endpoints (the Front Door endpoint and the secondary app hostname) and an itemized cost estimate from references/configure-multi-region.md; the approval in the next step covers only that reviewed set.
    2. Confirm once with the user: 📦 Multi-region IaC generated. Ready to deploy with \azd up`. Proceed? (yes / no)`
    3. 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.
    4. 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.

Priority Classification

PriorityCriteriaAction

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

ErrorMessageRemediation

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

ActionThis skill doesHand 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

Install

Install with chainctl
chainctl skill install public/microsoft/azure-reliability:latest
Get started with chainctl
View source

Harden your own skills

Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.

Provenance

Upstream sourcehttps://github.com/microsoft/azure-skills
Upstream commit9cd2049b35a580e5cd6e6a8288aff5c81e34b4d8
OCI reference

skills.cgr.dev/public/github.com/microsoft/skills/azure-reliability:latest

License

MIT

Files

HARDENING.md

LICENSE

SKILL.md

references/configure-health-probes.md

references/configure-multi-region.md

references/configure-storage.md

references/configure-zone-redundancy.md

references/health-probe-checks.md

references/iac-patching-bicep.md

references/iac-patching-terraform.md

references/multi-region-checks.md

references/services/app-service/reliability.md

references/services/functions/reliability.md

references/storage-redundancy-checks.md

references/zone-redundancy-checks.md


The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.