Azure Well-Architected Review

Azure Well-Architected Review

Runs an Azure Well-Architected Framework review of a workload's IaC and live resources across the five pillars and opens GitHub issues for the findings.

Skill files1 file
SKILL.md195 lines
1
---
2
name: azure-well-architected-review
3
description: 'Perform an Azure Well-Architected Framework review of the current workload IaC and architecture, generating findings and GitHub issues for improvements.'
4
---
5
6
# Azure Well-Architected Review
7
8
This workflow performs a structured Azure Well-Architected Framework (WAF) review against your workload's IaC files and deployed infrastructure. It identifies risks across all 5 WAF pillars and creates GitHub issues to track remediation.
9
10
## Prerequisites
11
- Azure CLI (`az`) configured and authenticated
12
- IaC files present in the repository (Bicep, Terraform, or ARM templates)
13
- GitHub MCP server configured and authenticated
14
15
## Workflow Steps
16
17
### Step 1: Load Well-Architected Framework Reference
18
Fetch current Azure WAF best practices:
19
- `https://learn.microsoft.com/en-us/azure/well-architected/`
20
- Service guides for the Azure services in use (`https://learn.microsoft.com/en-us/azure/well-architected/service-guides/`)
21
- Workload-specific guidance relevant to the workload type (SaaS, mission-critical, AI, etc.)
22
23
If the `microsoft.docs.mcp` MCP server is available, use it to query the latest pillar checklists and service-specific recommendations.
24
25
### Step 2: Discover IaC & Architecture
26
Establish the review scope, then inventory both the code and the live environment:
27
28
1. **Confirm the Azure scope**: Ask the user which subscription(s)/resource group(s) are in scope, or infer them from IaC parameters and confirm.
29
2. **Scan the repository for IaC files**:
30
- Bicep: `**/*.bicep`, `bicepconfig.json`
31
- Terraform: `**/*.tf` (azurerm/azapi providers)
32
- ARM templates: `**/azuredeploy*.json`, `**/*.template.json`, files with `$schema` containing `deploymentTemplate`
33
3. **Inventory live resources** (always, even when IaC exists): `az resource list --resource-group <rg> --output json` (or subscription-wide), plus targeted `az <service> show` calls for configuration details the pillar checks need.
34
4. **Compare IaC with live inventory**: Flag drift — resources present in Azure but absent from IaC (portal-created), resources defined in IaC but not deployed, and configuration mismatches. Record drift findings for Step 3 (they typically map to the Operational Excellence pillar).
35
36
Identify key Azure services in use (compute, data, networking, security, observability) and generate a Mermaid architecture diagram.
37
38
### Step 3: Pillar-by-Pillar Review
39
40
#### Pillar 1: Reliability
41
- [ ] Availability zones enabled for zonal services (VMs, VMSS, AKS node pools, App Service, SQL, Storage ZRS)
42
- [ ] Production SKUs support the required SLA (no Basic/Free tiers on critical paths)
43
- [ ] Azure SQL / Cosmos DB backup and point-in-time restore configured with appropriate retention
44
- [ ] Geo-redundancy configured where RPO requires it (GRS/RA-GRS storage, SQL failover groups, Cosmos DB multi-region)
45
- [ ] Autoscale rules configured for App Service plans, VMSS, AKS (no fixed single instance for production)
46
- [ ] Health probes configured on Load Balancer / Application Gateway / Front Door backends
47
- [ ] Dead-lettering enabled for Service Bus queues/subscriptions and Event Grid subscriptions
48
- [ ] Retry policies with exponential backoff implemented for transient fault handling
49
- [ ] Disaster recovery plan defined (documented RTO/RPO, tested failover)
50
51
#### Pillar 2: Security
52
- [ ] Managed identities used instead of service principals with secrets or connection strings
53
- [ ] No hardcoded credentials, keys, or connection strings in IaC or code
54
- [ ] Secrets stored in Azure Key Vault with RBAC authorization (not access policies)
55
- [ ] Storage accounts deny public blob access and disallow shared key access where possible
56
- [ ] Private endpoints (or at minimum service endpoints + firewall rules) for PaaS data services
57
- [ ] NSGs restrict inbound traffic to minimum required ports/CIDRs (no `*` → `*` allow rules)
58
- [ ] TLS 1.2+ enforced on all endpoints (`minimumTlsVersion`, `httpsOnly`)
59
- [ ] Azure RBAC follows least privilege (no Owner/Contributor at subscription scope for workload identities)
60
- [ ] Microsoft Defender for Cloud enabled on relevant resource types (`az security pricing list`)
61
- [ ] Azure WAF (Application Gateway or Front Door) configured for public-facing web endpoints
62
- [ ] Diagnostic settings send security logs to Log Analytics / Microsoft Sentinel
63
64
#### Pillar 3: Cost Optimization
65
- [ ] Reservations or savings plans evaluated for steady-state compute (VMs, App Service, SQL)
66
- [ ] Storage lifecycle management policies move blobs to cool/archive tiers
67
- [ ] Right-sized SKUs based on actual utilization (no oversized VMs/App Service plans)
68
- [ ] Dev/test environments use auto-shutdown schedules and Dev/Test pricing where eligible
69
- [ ] Azure Budgets and cost alerts configured (`az consumption budget list`)
70
- [ ] Unattached managed disks and orphaned public IPs identified and removed
71
- [ ] Consumption/serverless tiers used for spiky or low-volume workloads (Functions, Container Apps, SQL serverless)
72
- [ ] Log Analytics retention and data-cap settings tuned to avoid ingestion overruns
73
74
#### Pillar 4: Operational Excellence
75
- [ ] All infrastructure defined as IaC (no manual portal changes; deny assignments or policy where feasible)
76
- [ ] Consistent tagging strategy applied across all resources (owner, environment, cost center)
77
- [ ] Azure Monitor alerts defined for key metrics and service health
78
- [ ] Automated deployment pipeline present (GitHub Actions / Azure Pipelines, no manual deployments)
79
- [ ] Azure Activity Log and resource diagnostic settings routed to Log Analytics
80
- [ ] Application Insights (or OpenTelemetry equivalent) instrumented for application workloads
81
- [ ] Azure Policy assignments enforce organizational standards (allowed locations, SKUs, tags)
82
- [ ] Runbooks or operational documentation present
83
84
#### Pillar 5: Performance Efficiency
85
- [ ] Right-sized compute SKUs validated against load requirements
86
- [ ] Caching implemented where beneficial (Azure Cache for Redis, CDN/Front Door caching)
87
- [ ] Azure Front Door or CDN used for global static content delivery
88
- [ ] Autoscale based on load metrics rather than fixed instance counts
89
- [ ] Database performance tier appropriate (DTU vs vCore, elastic pools, Cosmos DB RU autoscale)
90
- [ ] Premium/zone-redundant storage used for latency-sensitive disk workloads
91
- [ ] Connection pooling and async patterns used for database and HTTP clients
92
93
### Step 4: Risk Classification
94
For each finding, classify:
95
- **High Risk**: Security vulnerability, single point of failure, no backup/recovery
96
- **Medium Risk**: Suboptimal reliability, cost inefficiency, performance concern
97
- **Low Risk**: Best practice deviation, minor optimization opportunity
98
99
### Step 5: User Confirmation
100
101
```
102
🏗️ Azure Well-Architected Review Summary
103
104
📊 Review Results:
105
• IaC Files Analyzed: X
106
• Azure Services Identified: Y
107
• Total Findings: Z
108
• High Risk: A (immediate action required)
109
• Medium Risk: B (should address soon)
110
• Low Risk: C (nice to have)
111
112
🔴 Top High Risk Findings:
113
1. [Pillar]: [Finding] — [Why it matters]
114
2. [Pillar]: [Finding] — [Why it matters]
115
116
💡 This will create Z individual GitHub issues + 1 EPIC issue.
117
118
❓ Proceed with creating GitHub issues? (y/n)
119
```
120
121
**Gate**: Only proceed to Steps 6–7 if the user gives an explicit affirmative response (e.g. "y", "yes"). On a negative, ambiguous, or missing response, do **not** create any GitHub issues — output the full findings as formatted markdown to the console and stop.
122
123
### Step 6: Create Individual Finding Issues
124
Label with "well-architected" and the pillar name (e.g., "security", "reliability").
125
126
**Title**: `[WAF-<PILLAR>] [Brief Finding] — [Risk Level]`
127
128
**Body**:
129
````markdown
130
## 🏗️ Well-Architected Finding: [Brief Title]
131
132
**Pillar**: [Name] | **Risk Level**: [High/Medium/Low] | **Effort**: [Low/Medium/High]
133
134
### 📋 Description
135
[Clear explanation of the finding and why it matters]
136
137
### 🔧 Remediation
138
139
**IaC Fix** (preferred):
140
```bicep
141
// Bicep example
142
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
143
name: storageAccountName
144
location: location
145
sku: { name: 'Standard_ZRS' }
146
kind: 'StorageV2'
147
properties: {
148
minimumTlsVersion: 'TLS1_2'
149
allowBlobPublicAccess: false
150
supportsHttpsTrafficOnly: true
151
}
152
}
153
```
154
155
**Azure CLI fallback**:
156
```bash
157
az storage account update --name <name> --resource-group <rg> \
158
--min-tls-version TLS1_2 --allow-blob-public-access false --https-only true
159
```
160
161
### 📚 Azure Reference
162
- [WAF Best Practice Link]
163
- [Microsoft Learn Documentation Link]
164
165
### ✅ Validation
166
- [ ] Change implemented in IaC and deployed
167
- [ ] Azure Policy compliance passes (if applicable)
168
- [ ] Microsoft Defender for Cloud recommendation resolved (if applicable)
169
170
**Well-Architected Recommendation**: [WAF checklist item this maps to]
171
````
172
173
### Step 7: Create EPIC Tracking Issue
174
Label with "well-architected" and "epic".
175
176
**Title**: `[EPIC] Azure Well-Architected Review — X findings across 5 pillars`
177
178
**Body**: Executive summary with pillar breakdown table (finding counts by pillar and risk level), Mermaid architecture diagram, prioritized checklist linking all individual issues (High → Medium → Low), and success criteria:
179
- All High-risk findings resolved
180
- Medium findings have accepted mitigation plans
181
- No regression in existing Azure Monitor alerts or Azure Policy compliance
182
183
## Error Handling
184
- **No IaC Files Found**: Limit review to live resource discovery via Azure CLI (`az resource list`) and note the gap
185
- **Insufficient Azure Permissions**: List required read-only roles for the review (Reader, Security Reader)
186
- **GitHub Creation Failure**: Output all findings as formatted markdown to console
187
188
## Success Criteria
189
- ✅ All 5 WAF pillars reviewed against IaC and live infrastructure
190
- ✅ All findings classified by risk level and pillar
191
- ✅ Actionable remediation steps with IaC examples for each finding
192
- ✅ GitHub issues created for team tracking
193
- ✅ Architecture diagram generated for EPIC context
194
- ✅ Microsoft Learn documentation references included
195

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,710 prompts

More by @OpenSourceBuffGuy

See all
Katana fighter faces horned monster at city intersection prompt image

Katana fighter faces horned monster at city intersection

Writes an urban fantasy action sequence in which a katana fighter faces a horned monster that bursts through a glass office building at a city intersection.

video-prompt, action, martial-arts, multi-shot, seedance, visual-effects, creatures, fantasy-world, cityscape, camera-movement, drone-shot, low-angle, close-up, cinematic, dramatic-lighting, woman, warriors, natural-light, photorealistic, scene-transitions

Faded MiniDV walk with a stray cat and swing prompt image

Faded MiniDV walk with a stray cat and swing

Generates a 30-second fake early-2000s Korean MiniDV home video of a young woman walking a neighbourhood with a stray cat and swing, with camcorder flaws and location-only sound.

video-prompt, seedance, home-video, vlog, handheld, timed-beats, korea, negative-prompt, character-consistency, woman, animals, natural-light, film-grain, vintage, y2k, candid, muted-colors, scene-transitions, camera-movement, pov, structured-output, long-form, for-filmmakers, for-content-creators, sound-effects

Woman in gingham top at a Christmas record cafe prompt image

Woman in gingham top at a Christmas record cafe

Creates a Y2K compact-camera flash portrait of a woman in a red gingham outfit at a Christmas record café table, with every prop, light and lens detail given as JSON fields.

image-prompt, json-prompt, gpt-image, nano-banana, face-reference, portrait, woman, christmas, holiday, y2k, film-photography, film-grain, structured-output, photorealistic, medium-shot, cozy, night-scene, candid, smartphone-photo, vintage, music, food-photography, for-photographers, long-form, warm-colors, soft-lighting, still-life, fashion

Reviews

Loading reviews…

Discussion

Loading comments…