Установка
SKILL.md
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 login - Permissions: 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 non-Functions compute (App Service sites that aren't Function Apps, Container Apps) is found, note it but do not deep-dive — those services are planned for a future version of this skill.
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 query - App 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 resources- For 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.
- For "needs fixing" resources, include a short inline reason (
- 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.
- yes → run
-
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 root - If not found, check project root for
*.bicepor*.tffiles - If still not found, ask user: "Where are your IaC files located?"
- Check for
*.bicepfiles → use Bicep patching - Check for
*.tffiles → use Terraform patching - If 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 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.
⛔ СТОП — Спросите о повышении уровня хранилища перед Deploy 2. После успешного Deploy 1 явно спросите пользователя:
✅ 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)
- да → навык сам выполняет команду миграции, опрашивает до завершения, затем патчит SKU хранилища в IaC и запускает Deploy 2 (теперь это подтверждение без изменений). Пользователю не нужно ничего запускать вручную.
- нет / позже → оставьте патч SKU хранилища неприменённым. Отметьте в повторной оценке, что ZR-хранилище остаётся пробелом; предложите вернуться к этому позже.
Шаг 4: Миграция хранилища (только если пользователь ответил «да» на шаге 3)
Навык сам выполняет эти команды — не просите пользователя запускать их. Показывайте прогресс по ходу выполнения:
🔄 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
Для очень длительных миграций вы можете показать пользователю контрольную точку («это всё ещё выполняется, проверьте позже»), а не блокировать весь разговор.
Шаг 5: Deploy 2 — патч SKU хранилища
После завершения миграции навык патчит SKU хранилища в IaC и запускает ту же команду развёртывания, что и на шаге 3 (например, azd up). Это развёртывание — подтверждение без изменений, что IaC соответствует текущему состоянию. Подтвердите один раз с пользователем перед выполнением, затем запустите напрямую.
Шаг 2 (оба пути): Повторная оценка
После применения изменений (CLI) или развёртывания (IaC) автоматически повторно запустите оценку и покажите ту же таблицу с разбивкой по функциям что и в фазе 3, с обновлением статуса каждой строки функции в соответствии с новым состоянием. Кратко укажите, что изменилось с предыдущего запуска.
🔄 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.)
Шаг 3 (оба пути): Продолжение по мультирегиону — СПРОСИТЕ и ЖДИТЕ
Мультирегион — это значительный шаг по стоимости и сложности. НЕ НЕ начинайте его автоматически. После повторной оценки, только если все основные функции надёжности в одном регионе 🟢 ВКЛ (зонно-резервированные вычисления, ZRS/GZRS хранилище, проверки работоспособности), явно спросите пользователя и дождитесь его ответа прежде чем что-либо делать:
🟢 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)
- да → переходите к references/configure-multi-region.md. Подтвердите с пользователем выбор вторичного региона, затем:
- Сгенерируйте мультирегиональный IaC (дополнения Bicep / Terraform для вторичного региона + Front Door).
- Подтвердите один раз с пользователем:
📦 Multi-region IaC generated. Ready to deploy with \azd up`. Продолжить? (да / нет)` - On да, навык сам выполняет развёртывание (
azd up/az deployment group create/terraform apply) и транслирует вывод. Не останавливайтесь и не говорите пользователю запускать его. - После успешного развёртывания выполните финальную повторную оценку, чтобы пользователь увидел, как мультирегиональное переключение при отказе переходит в 🟢 ВКЛ.
- нет / позже → оставьте развёртывание как есть. Отметьте, что зонно-резервированный однорегиональный вариант — надёжное конечное состояние; к мультирегиону можно вернуться в любое время.
⛔ Не пропускайте ожидание. Не генерируйте мультирегиональный IaC, не развёртывайте Front Door и не изменяйте никакие файлы, пока пользователь явно не сказал «да». Если основная надёжность ещё не вся 🟢, не спрашивайте о мультирегионе — сначала устраните основные пробелы.
Классификация приоритетов
| Приоритет | Критерии | Действие |
|---|---|---|
| Критический | Нет зонного резервирования И производственная нагрузка | Исправить немедленно |
| Высокий | Хранилище LRS на зонно-резервированных вычислениях | Исправить в течение нескольких дней |
| Средний | Нет мультирегиона (один регион, но зонно-резервированный) | Запланировать на следующий спринт |
| Низкий | Отсутствуют проверки работоспособности или пробелы в мониторинге | Отслеживать и исправлять |
Обработка ошибок
| Ошибка | Сообщение | Устранение |
|---|---|---|
| Требуется аутентификация | "Please login" | Запустите az login и повторите |
| Доступ запрещён | "Forbidden" | Подтвердите назначение роли Reader/Contributor |
| План не поддерживает ZR | "Upgrade required" | Сообщите пользователю путь повышения плана + разницу в стоимости |
| Регион не поддерживает AZ | "Region limitation" | Предложите поддерживаемые регионы |
Лучшие практики
- Запускайте оценки надёжности после каждого значительного изменения инфраструктуры
- Периодически тестируйте сценарии переключения при отказе (как минимум ежеквартально)
Границы навыка
| Действие | Этот навык выполняет | Передать |
|---|---|---|
| Оценка состояния надёжности | ✅ Да | — |
| Рекомендации по улучшению | ✅ Да | — |
| Включение зонного резервирования (команды CLI) | ✅ Да | — |
| Патчинг Bicep/Terraform для надёжности | ✅ Да | — |
| Генерация мультирегионального IaC | ✅ Да (дополнения для вторичного региона + Front Door) | azure-prepare для полного каркаса IaC нового приложения |
| Развёртывание IaC для изменений надёжности | ✅ Да (запускает azd up / terraform apply / az deployment сам, после подтверждения пользователя) | azure-deploy для общих/ненадёжностных развёртываний |
| Валидация перед развёртыванием | Только проверки надёжности | azure-validate для полной валидации |
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: azure-reliability](https://darkplay.ru/ai/skills/microsoft-skills-azure-reliability)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Harness Optimizeraffaan-m · Анализирует и улучшает конфигурацию локального агентного харнесса по надёжности и цене.
agentic-bundle-azure-ai-cloudsickn33 · Установите набор редакционных навыков "Azure AI & Cloud" для Claude Code.
azureanthropics · Превращает Claude в эксперта по Azure. Плагин объединяет Azure MCP-сервер и…
azure-cosmos-db-assistantanthropics · Экспертный помощник по Azure Cosmos DB — моделирование данных, оптимизация запросов…
microsoft-docsanthropics · Доступ к официальной документации Microsoft, справочникам API и примерам кода для Azure…
oracle-ai-data-platform-workbench-spark-connectorsanthropics · Коннекторы Spark для Oracle AI Data Platform Workbench в Claude Code. 18…
cloud-infrastructurewshobson · Проектирование облачной архитектуры для AWS/Azure/GCP/OCI, настройка кластеров…
claude-for-msft-365-installanthropics · Настраивает прямой доступ к облаку (Vertex AI, Bedrock или LLM-шлюз) для надстройки…
Azure AVM Bicep modegithub · Создание, обновление или проверка Azure IaC на Bicep с использованием Azure Verified…
Azure AVM Terraform modegithub · Создание, обновление или проверка Azure IaC на Terraform с использованием Azure Verified…Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton