Architecture Design Skill
Design comprehensive Azure architectures and produce HLD documentation following Well-Architected Framework and Cloud Adoption Framework best practices.
When to Use
- Design new Azure solutions from requirements
- Create High-Level Design (HLD) documentation
- Select Azure services and architectural patterns
- Plan cloud migrations or modernization
- Produce architecture decision records
Design Process
1. Gather Requirements
Ask clarifying questions about:
- Workload type: Web app, API, data processing, IoT, AI/ML
- Scale: User count, data volume, geographic distribution
- Performance: Response time, throughput, latency SLAs
- Availability: Uptime requirements (e.g., 99.9%, 99.99%)
- Security: Data classification, compliance (HIPAA, GDPR, PCI-DSS)
- Budget: Monthly/annual cost constraints
- Timeline: Deployment deadlines, phasing needs
2. Select Azure Services
Service Selection Priority: PaaS > Containers > IaaS
Refer to references.md for detailed guidance on:
- Compute options (App Service, Functions, AKS, Container Apps, VMs)
- Data storage (Azure SQL, Cosmos DB, PostgreSQL, Blob Storage)
- Messaging (Service Bus, Event Hubs, Event Grid, Storage Queues)
- Networking (Front Door, Application Gateway, Load Balancer)
Key Decision Criteria:
- Match service capabilities to requirements
- Consider team expertise and operational overhead
- Evaluate cost vs. feature trade-offs
- Prioritize managed services to reduce operations
3. Design Architecture
Apply patterns based on requirements:
N-Tier (Traditional):
- When: Standard web apps, proven patterns, team familiarity
- Structure: Frontend → Load Balancer → App Tier → Database
- Services: App Service, Azure SQL, Application Gateway, Redis Cache
Microservices:
- When: Loosely coupled services, independent scaling, polyglot needs
- Structure: API Gateway → Services → Message Bus → Databases
- Services: API Management, AKS/Container Apps, Service Bus, Cosmos DB
Event-Driven:
- When: Asynchronous processing, reactive systems, decoupled components
- Structure: Event Sources → Event Hub/Grid → Functions/Logic Apps → Storage
- Services: Event Hubs, Azure Functions, Cosmos DB, Service Bus
Serverless:
- When: Sporadic workloads, event processing, cost-sensitive scenarios
- Structure: HTTP/Timer/Queue Triggers → Functions → Storage/Database
- Services: Azure Functions, Logic Apps, Cosmos DB, Blob Storage
4. Apply Well-Architected Framework
Address all five pillars (detailed checklists in waf-assessment skill):
Reliability:
- Availability Zones for production
- Multi-region for mission-critical (99.99%+)
- Health checks and auto-healing
- Backup strategy with RPO/RTO defined
Security:
- Managed identities (no credentials in code)
- Private endpoints for PaaS services
- HTTPS only with TLS 1.2+
- Network security groups (least privilege)
- Azure Key Vault for secrets
- Azure AD authentication and RBAC
Cost Optimization:
- Right-size resources (start small, scale up)
- Auto-scaling policies
- Reserved instances for predictable workloads
- Storage tiers (Hot/Cool/Archive)
- Cost monitoring and alerts
Operational Excellence:
- Infrastructure as Code (Bicep or Terraform)
- CI/CD pipelines
- Application Insights + Log Analytics
- Alerts for critical scenarios
- Automated deployment and rollback
Performance Efficiency:
- CDN for static content
- Caching strategy (Redis, CDN)
- Asynchronous processing
- Appropriate compute SKUs
- Auto-scaling rules
5. Create Naming Convention
Follow Cloud Adoption Framework:
{resource-type}-{workload}-{environment}-{region}-{instance}
Examples:
- rg-ecommerce-prod-eastus-001
- app-ecommerce-prod-eastus-001
- sql-ecommerce-prod-eastus-001
- kv-ecommerce-prod-eastus
- func-orderproc-prod-eastus-001
Standard Tags:
Environment: Production | Staging | Development | Test
Owner: teamname@company.com
CostCenter: IT-12345
Project: ProjectName
BusinessUnit: Sales | Marketing | Engineering
Criticality: Critical | High | Medium | Low
DataClassification: Public | Internal | Confidential | Restricted
6. Estimate Costs
Invoke the azure-pricing skill to retrieve live retail pricing. Never estimate costs from memory.
The azure-pricing skill will:
- Call
azure-mcp/pricing (pricing_get) per billable resource SKU and region
- Return a three-column table: Pay-as-you-go | 1-year Reserved | 3-year Reserved
- Identify top reserved instance / savings plan candidates
Confirm all service SKUs in step 3 before requesting pricing — the tool requires a specific SKU or service name.
Structure the cost output by category:
- Compute (App Service, Functions, VMs, AKS nodes)
- Data (SQL, Cosmos DB, Storage)
- Networking (Front Door, App Gateway, Firewall, Bandwidth)
- Monitoring (Application Insights, Log Analytics)
High-Level Design Output Format
Generate comprehensive HLD documents with these sections:
1. Executive Summary
- Solution overview (2-3 paragraphs)
- Key benefits and business value
- High-level cost estimate
- Timeline and deployment approach
2. Requirements Summary
- Functional requirements (bullet points)
- Non-functional requirements (performance, availability, security)
- Constraints and assumptions
3. Architecture Overview
- Architecture diagram description (components and connections)
- Design pattern used (N-tier, microservices, event-driven, serverless)
- Rationale for architectural approach
4. Component Design
For each component:
- Service Name: Azure service selected
- SKU/Tier: Specific pricing tier (e.g., App Service P2v3, Azure SQL S2)
- Purpose: Role in the architecture
- Configuration: Key settings (regions, zones, instances, capacity)
- Naming: Following CAF convention (rg-app-prod-eastus-001)
5. Networking Design
- Virtual Network configuration (address spaces)
- Subnets and network security groups
- Private endpoints and service endpoints
- Ingress/egress patterns (load balancers, gateways)
- DNS configuration
6. Security Design
- Authentication and authorization (Azure AD, Managed Identity)
- Secrets management (Key Vault)
- Encryption (at-rest and in-transit)
- Network security (NSGs, firewalls, WAF)
- Compliance requirements
7. Data Design
- Database schema approach
- Data flow between components
- Backup and recovery strategy (RPO/RTO)
- Data retention policies
- Disaster recovery approach
8. Monitoring and Operations
- Application Insights configuration
- Log Analytics workspace
- Key metrics to monitor
- Alert definitions and thresholds
- Dashboard recommendations
9. Deployment Strategy
- Infrastructure as Code approach (Bicep or Terraform)
- CI/CD pipeline design
- Environment strategy (dev, staging, prod)
- Deployment sequence and dependencies
- Rollback procedure
10. Cost Breakdown
- Invoke the
azure-pricing skill to retrieve live retail prices per service SKU and target region
- Monthly cost per service and annual projection
- Side-by-side table: Pay-as-you-go | 1-year Reserved | 3-year Reserved
- Cost optimization recommendations (right-sizing, spot/preemptible nodes, storage tiers)
- Top reserved instance / savings plan candidates with estimated monthly saving
11. Well-Architected Assessment
- Brief evaluation against each WAF pillar
- Key strengths of the design
- Areas for future improvement
12. Risks and Mitigations
- Identified technical risks
- Mitigation strategies
- Dependencies and assumptions
13. Next Steps
- Immediate actions (Phase 1)
- Short-term improvements (Phase 2)
- Long-term roadmap (Phase 3)
Example HLD Snippet
# High-Level Design: E-Commerce Web Platform
## 1. Executive Summary
This HLD describes a scalable e-commerce platform on Azure supporting up to 100K concurrent users
with 99.95% availability. The solution uses proven PaaS services with multi-region capabilities,
comprehensive security controls, and cost-optimized infrastructure.
**Key Benefits:**
- Global reach with Azure Front Door CDN
- Auto-scaling for traffic spikes (Black Friday, holidays)
- PCI-DSS compliant payment processing
- **Estimated cost**: see Section 10 — priced live via the `azure-pricing` skill per SKU and target region
**Timeline:** 8-week implementation with phased rollout
## 3. Architecture Overview
**Pattern:** N-Tier with asynchronous order processing
**Components:**
Azure Front Door (Global CDN + WAF)
└─ Application Gateway (Regional WAF + LB)
├─ App Service (Web Frontend - 3 instances, P2v3)
├─ App Service (API Backend - 3 instances, P2v3)
├─ Azure Functions (Order Processor, Premium)
├─ Azure SQL Database (S2 DTU, 50GB)
├─ Redis Cache (Basic C1, 1GB)
└─ Blob Storage (Hot tier, product images)
**Rationale:** N-tier provides proven scalability, PaaS reduces operational overhead,
Functions handle asynchronous order processing, Azure SQL provides ACID guarantees.
## 4. Component Design
**Frontend Web App**
- Service: Azure App Service (Linux)
- SKU: P2v3 (2 vCores, 8GB RAM)
- Instances: 3 (Availability Zones 1, 2, 3)
- Auto-scale: 3-10 instances based on CPU > 70%
- Naming: app-ecommerce-web-prod-eastus-001
- Purpose: Serves customer-facing website
[Continue with all components...]
Tips for Great HLDs
Be Specific: Use exact service names and SKUs (not "database" but "Azure SQL Database S2 DTU")
Show Trade-offs: Explain why you chose service X over Y
Include Diagrams: Describe architecture visually with clear component relationships
Live Pricing: Invoke the azure-pricing skill for every cost section — never guess prices from memory; always pass the target region and currency (e.g. GBP for UK workloads)
Cost-Aware: Always provide cost estimates and optimization opportunities
Security First: Address authentication, authorization, encryption, network security
WAF Alignment: Reference specific WAF principles in design decisions
Naming Standards: Use CAF conventions consistently
Implementation-Ready: Provide enough detail for IaC generation
Avoid: Vague terms, missing costs, ignoring security, skipping WAF, incomplete components, no rationale
1---2name: architecture-design3description: Design Azure cloud architectures from requirements and generate High-Level Design (HLD) documentation with service selection, patterns, cost estimates, and WAF alignment. Use this when asked to design or architect Azure solutions.4metadata:5 source: https://skillmd.com/skills/micsapp/architecture-design6---78# Architecture Design Skill910Design comprehensive Azure architectures and produce HLD documentation following Well-Architected Framework and Cloud Adoption Framework best practices.1112## When to Use1314- Design new Azure solutions from requirements15- Create High-Level Design (HLD) documentation16- Select Azure services and architectural patterns17- Plan cloud migrations or modernization18- Produce architecture decision records1920## Design Process2122### 1. Gather Requirements2324Ask clarifying questions about:25- **Workload type**: Web app, API, data processing, IoT, AI/ML26- **Scale**: User count, data volume, geographic distribution27- **Performance**: Response time, throughput, latency SLAs28- **Availability**: Uptime requirements (e.g., 99.9%, 99.99%)29- **Security**: Data classification, compliance (HIPAA, GDPR, PCI-DSS)30- **Budget**: Monthly/annual cost constraints31- **Timeline**: Deployment deadlines, phasing needs3233### 2. Select Azure Services3435**Service Selection Priority:** PaaS > Containers > IaaS3637Refer to [references.md](./references.md) for detailed guidance on:38- Compute options (App Service, Functions, AKS, Container Apps, VMs)39- Data storage (Azure SQL, Cosmos DB, PostgreSQL, Blob Storage)40- Messaging (Service Bus, Event Hubs, Event Grid, Storage Queues)41- Networking (Front Door, Application Gateway, Load Balancer)4243**Key Decision Criteria:**44- Match service capabilities to requirements45- Consider team expertise and operational overhead46- Evaluate cost vs. feature trade-offs47- Prioritize managed services to reduce operations4849### 3. Design Architecture5051Apply patterns based on requirements:5253**N-Tier (Traditional):**54- **When**: Standard web apps, proven patterns, team familiarity55- **Structure**: Frontend → Load Balancer → App Tier → Database56- **Services**: App Service, Azure SQL, Application Gateway, Redis Cache5758**Microservices:**59- **When**: Loosely coupled services, independent scaling, polyglot needs60- **Structure**: API Gateway → Services → Message Bus → Databases61- **Services**: API Management, AKS/Container Apps, Service Bus, Cosmos DB6263**Event-Driven:**64- **When**: Asynchronous processing, reactive systems, decoupled components65- **Structure**: Event Sources → Event Hub/Grid → Functions/Logic Apps → Storage66- **Services**: Event Hubs, Azure Functions, Cosmos DB, Service Bus6768**Serverless:**69- **When**: Sporadic workloads, event processing, cost-sensitive scenarios70- **Structure**: HTTP/Timer/Queue Triggers → Functions → Storage/Database71- **Services**: Azure Functions, Logic Apps, Cosmos DB, Blob Storage7273### 4. Apply Well-Architected Framework7475Address all five pillars (detailed checklists in [waf-assessment skill](../waf-assessment/)):7677**Reliability:**78- Availability Zones for production79- Multi-region for mission-critical (99.99%+)80- Health checks and auto-healing81- Backup strategy with RPO/RTO defined8283**Security:**84- Managed identities (no credentials in code)85- Private endpoints for PaaS services86- HTTPS only with TLS 1.2+87- Network security groups (least privilege)88- Azure Key Vault for secrets89- Azure AD authentication and RBAC9091**Cost Optimization:**92- Right-size resources (start small, scale up)93- Auto-scaling policies94- Reserved instances for predictable workloads95- Storage tiers (Hot/Cool/Archive)96- Cost monitoring and alerts9798**Operational Excellence:**99- Infrastructure as Code (Bicep or Terraform)100- CI/CD pipelines101- Application Insights + Log Analytics102- Alerts for critical scenarios103- Automated deployment and rollback104105**Performance Efficiency:**106- CDN for static content107- Caching strategy (Redis, CDN)108- Asynchronous processing109- Appropriate compute SKUs110- Auto-scaling rules111112### 5. Create Naming Convention113114Follow Cloud Adoption Framework:115```116{resource-type}-{workload}-{environment}-{region}-{instance}117118Examples:119- rg-ecommerce-prod-eastus-001120- app-ecommerce-prod-eastus-001121- sql-ecommerce-prod-eastus-001122- kv-ecommerce-prod-eastus123- func-orderproc-prod-eastus-001124```125126**Standard Tags:**127```128Environment: Production | Staging | Development | Test129Owner: teamname@company.com130CostCenter: IT-12345131Project: ProjectName132BusinessUnit: Sales | Marketing | Engineering133Criticality: Critical | High | Medium | Low134DataClassification: Public | Internal | Confidential | Restricted135```136137### 6. Estimate Costs138139**Invoke the `azure-pricing` skill** to retrieve live retail pricing. Never estimate costs from memory.140141The `azure-pricing` skill will:142- Call `azure-mcp/pricing` (`pricing_get`) per billable resource SKU and region143- Return a three-column table: Pay-as-you-go | 1-year Reserved | 3-year Reserved144- Identify top reserved instance / savings plan candidates145146> Confirm all service SKUs in step 3 before requesting pricing — the tool requires a specific SKU or service name.147148Structure the cost output by category:149- Compute (App Service, Functions, VMs, AKS nodes)150- Data (SQL, Cosmos DB, Storage)151- Networking (Front Door, App Gateway, Firewall, Bandwidth)152- Monitoring (Application Insights, Log Analytics)153154## High-Level Design Output Format155156Generate comprehensive HLD documents with these sections:157158### 1. Executive Summary159- Solution overview (2-3 paragraphs)160- Key benefits and business value161- High-level cost estimate162- Timeline and deployment approach163164### 2. Requirements Summary165- Functional requirements (bullet points)166- Non-functional requirements (performance, availability, security)167- Constraints and assumptions168169### 3. Architecture Overview170- Architecture diagram description (components and connections)171- Design pattern used (N-tier, microservices, event-driven, serverless)172- Rationale for architectural approach173174### 4. Component Design175176For each component:177- **Service Name**: Azure service selected178- **SKU/Tier**: Specific pricing tier (e.g., App Service P2v3, Azure SQL S2)179- **Purpose**: Role in the architecture180- **Configuration**: Key settings (regions, zones, instances, capacity)181- **Naming**: Following CAF convention (rg-app-prod-eastus-001)182183### 5. Networking Design184- Virtual Network configuration (address spaces)185- Subnets and network security groups186- Private endpoints and service endpoints187- Ingress/egress patterns (load balancers, gateways)188- DNS configuration189190### 6. Security Design191- Authentication and authorization (Azure AD, Managed Identity)192- Secrets management (Key Vault)193- Encryption (at-rest and in-transit)194- Network security (NSGs, firewalls, WAF)195- Compliance requirements196197### 7. Data Design198- Database schema approach199- Data flow between components200- Backup and recovery strategy (RPO/RTO)201- Data retention policies202- Disaster recovery approach203204### 8. Monitoring and Operations205- Application Insights configuration206- Log Analytics workspace207- Key metrics to monitor208- Alert definitions and thresholds209- Dashboard recommendations210211### 9. Deployment Strategy212- Infrastructure as Code approach (Bicep or Terraform)213- CI/CD pipeline design214- Environment strategy (dev, staging, prod)215- Deployment sequence and dependencies216- Rollback procedure217218### 10. Cost Breakdown219- **Invoke the `azure-pricing` skill** to retrieve live retail prices per service SKU and target region220- Monthly cost per service and annual projection221- Side-by-side table: Pay-as-you-go | 1-year Reserved | 3-year Reserved222- Cost optimization recommendations (right-sizing, spot/preemptible nodes, storage tiers)223- Top reserved instance / savings plan candidates with estimated monthly saving224225### 11. Well-Architected Assessment226- Brief evaluation against each WAF pillar227- Key strengths of the design228- Areas for future improvement229230### 12. Risks and Mitigations231- Identified technical risks232- Mitigation strategies233- Dependencies and assumptions234235### 13. Next Steps236- Immediate actions (Phase 1)237- Short-term improvements (Phase 2)238- Long-term roadmap (Phase 3)239240## Example HLD Snippet241242```markdown243# High-Level Design: E-Commerce Web Platform244245## 1. Executive Summary246247This HLD describes a scalable e-commerce platform on Azure supporting up to 100K concurrent users248with 99.95% availability. The solution uses proven PaaS services with multi-region capabilities,249comprehensive security controls, and cost-optimized infrastructure.250251**Key Benefits:**252- Global reach with Azure Front Door CDN253- Auto-scaling for traffic spikes (Black Friday, holidays)254- PCI-DSS compliant payment processing255- **Estimated cost**: see Section 10 — priced live via the `azure-pricing` skill per SKU and target region256257**Timeline:** 8-week implementation with phased rollout258259## 3. Architecture Overview260261**Pattern:** N-Tier with asynchronous order processing262263**Components:**264```265Azure Front Door (Global CDN + WAF)266└─ Application Gateway (Regional WAF + LB)267 ├─ App Service (Web Frontend - 3 instances, P2v3)268 ├─ App Service (API Backend - 3 instances, P2v3)269 ├─ Azure Functions (Order Processor, Premium)270 ├─ Azure SQL Database (S2 DTU, 50GB)271 ├─ Redis Cache (Basic C1, 1GB)272 └─ Blob Storage (Hot tier, product images)273```274275**Rationale:** N-tier provides proven scalability, PaaS reduces operational overhead,276Functions handle asynchronous order processing, Azure SQL provides ACID guarantees.277278## 4. Component Design279280**Frontend Web App**281- Service: Azure App Service (Linux)282- SKU: P2v3 (2 vCores, 8GB RAM)283- Instances: 3 (Availability Zones 1, 2, 3)284- Auto-scale: 3-10 instances based on CPU > 70%285- Naming: app-ecommerce-web-prod-eastus-001286- Purpose: Serves customer-facing website287288[Continue with all components...]289```290291## Tips for Great HLDs292293**Be Specific:** Use exact service names and SKUs (not "database" but "Azure SQL Database S2 DTU")294**Show Trade-offs:** Explain why you chose service X over Y295**Include Diagrams:** Describe architecture visually with clear component relationships296**Live Pricing:** Invoke the **`azure-pricing` skill** for every cost section — never guess prices from memory; always pass the target `region` and `currency` (e.g. `GBP` for UK workloads)297**Cost-Aware:** Always provide cost estimates and optimization opportunities298**Security First:** Address authentication, authorization, encryption, network security299**WAF Alignment:** Reference specific WAF principles in design decisions300**Naming Standards:** Use CAF conventions consistently301**Implementation-Ready:** Provide enough detail for IaC generation302303**Avoid:** Vague terms, missing costs, ignoring security, skipping WAF, incomplete components, no rationale