Compute Host Selection
When to Use This Skill
Use when a new workload needs a home on Azure and the right compute service is not obvious, or when reviewing an existing workload that may be over- or under-engineered for its current host.
1. The Primary Decision Tree
Answer these questions in order:
| Question |
If YES |
If NO |
| Is it purely static (HTML/JS/CSS + optional serverless API)? |
Static Web Apps |
Continue |
| Is it event-driven, short-duration (< 10 min), and triggered by a queue/timer/HTTP? |
Azure Functions |
Continue |
| Does it need HTTP scaling to zero AND you want container-native packaging? |
Container Apps |
Continue |
| Does it need the full Kubernetes API (CRDs, operators, custom schedulers)? |
AKS |
Continue |
| Everything else (traditional web app, always-on API, background service) |
App Service |
— |
2. Service Comparison Table
| Service |
Scale-to-zero |
Container-native |
Ops burden |
Best for |
| App Service |
No (always-on) |
Optional |
Low |
Web apps, REST APIs, background workers |
| Container Apps |
Yes (Consumption) |
Yes |
Low-medium |
Microservices, event-driven containers, scale-to-zero HTTP |
| Azure Functions |
Yes |
Optional |
Low |
Event-driven, short-lived, trigger-based processing |
| Static Web Apps |
Yes |
No |
Minimal |
SPAs, static sites, Jamstack with optional API routes |
| AKS |
No |
Yes |
High |
Kubernetes-specific APIs, complex orchestration |
3. Hosting the Claude Application on Azure
Per app-platform-engineer's remit:
| Claude app shape |
Recommended host |
| HTTP API wrapper around Claude |
Container Apps (scale-to-zero, sidecar-friendly) |
| Serverless inference trigger |
Azure Functions (Consumption plan, Durable for long chains) |
| Long-running agent with stateful conversation |
Container Apps (min replicas: 1) or App Service |
| Full web app (front-end + API) |
App Service (front-end) + Container Apps (API) |
Seam: claude-app-engineering names the target; this plugin provisions it.
4. App Service Plan SKU Selection
| Workload |
SKU tier |
Notes |
| Production web API |
P2v3 or P3v3 |
Zone-redundant available from P1v3+ |
| Dev / internal tools |
B2 or B3 |
No autoscale; acceptable for low-traffic |
| High-scale or zone-redundant |
P2v3 + ZoneRedundant: true |
Premium v3 required |
| Functions (always-on) |
Elastic Premium EP2 |
Needed when cold-start is unacceptable |
Avoid the Free and Shared tiers for anything beyond prototyping.
5. Container Apps Environment Considerations
resource containerAppsEnv 'Microsoft.App/managedEnvironments@2024-03-01' = {
name: 'cae-myapp-prod-eastus'
location: location
properties: {
zoneRedundant: true // prod only; not available in all regions
workloadProfiles: [
{
name: 'Consumption'
workloadProfileType: 'Consumption'
}
]
}
}
Use the Consumption workload profile for scale-to-zero. Use Dedicated (D4 / D8) for workloads needing guaranteed CPU/memory.
6. When to Use AKS (and When Not To)
Use AKS only when you need:
- Custom Kubernetes operators or CRDs
- Specific runtime scheduling (GPU node pools, spot nodes)
- Existing Kubernetes manifests and Helm charts from on-premises
Do not use AKS when:
- The requirement is "containerized" — Container Apps handles this with far less ops overhead
- The team doesn't have Kubernetes expertise — cluster upgrades, node pool management, and CNI configuration are non-trivial
- Cost is a concern — AKS system node pools run 24/7; Container Apps Consumption scales to zero
7. Checklist Before Finalizing
Pitfalls
- Defaulting to AKS because the team "uses Docker" — Container Apps covers 90% of container use cases without Kubernetes ops overhead
- Using the Consumption plan for Functions that must always be warm — use Elastic Premium
- Choosing App Service for scale-to-zero HTTP APIs — it doesn't scale to zero; use Container Apps
- Forgetting zone redundancy for prod workloads — outages in a single AZ take the service down
See Also
1---2name: compute-host-selection3description: "Decision playbook for choosing the right Azure compute service — App Service, Container Apps, Azure Functions, Static Web Apps, or AKS — based on workload shape, ops burden, and scaling requirements."4metadata:5 source: https://skillmd.com/skills/mcorbett51090/compute-host-selection6---78# Compute Host Selection910## When to Use This Skill1112Use when a new workload needs a home on Azure and the right compute service is not obvious, or when reviewing an existing workload that may be over- or under-engineered for its current host.1314## 1. The Primary Decision Tree1516Answer these questions in order:1718| Question | If YES | If NO |19|---|---|---|20| Is it purely static (HTML/JS/CSS + optional serverless API)? | **Static Web Apps** | Continue |21| Is it event-driven, short-duration (< 10 min), and triggered by a queue/timer/HTTP? | **Azure Functions** | Continue |22| Does it need HTTP scaling to zero AND you want container-native packaging? | **Container Apps** | Continue |23| Does it need the full Kubernetes API (CRDs, operators, custom schedulers)? | **AKS** | Continue |24| Everything else (traditional web app, always-on API, background service) | **App Service** | — |2526## 2. Service Comparison Table2728| Service | Scale-to-zero | Container-native | Ops burden | Best for |29|---|---|---|---|---|30| App Service | No (always-on) | Optional | Low | Web apps, REST APIs, background workers |31| Container Apps | Yes (Consumption) | Yes | Low-medium | Microservices, event-driven containers, scale-to-zero HTTP |32| Azure Functions | Yes | Optional | Low | Event-driven, short-lived, trigger-based processing |33| Static Web Apps | Yes | No | Minimal | SPAs, static sites, Jamstack with optional API routes |34| AKS | No | Yes | High | Kubernetes-specific APIs, complex orchestration |3536## 3. Hosting the Claude Application on Azure3738Per `app-platform-engineer`'s remit:3940| Claude app shape | Recommended host |41|---|---|42| HTTP API wrapper around Claude | Container Apps (scale-to-zero, sidecar-friendly) |43| Serverless inference trigger | Azure Functions (Consumption plan, Durable for long chains) |44| Long-running agent with stateful conversation | Container Apps (min replicas: 1) or App Service |45| Full web app (front-end + API) | App Service (front-end) + Container Apps (API) |4647Seam: `claude-app-engineering` names the target; this plugin provisions it.4849## 4. App Service Plan SKU Selection5051| Workload | SKU tier | Notes |52|---|---|---|53| Production web API | P2v3 or P3v3 | Zone-redundant available from P1v3+ |54| Dev / internal tools | B2 or B3 | No autoscale; acceptable for low-traffic |55| High-scale or zone-redundant | P2v3 + ZoneRedundant: true | Premium v3 required |56| Functions (always-on) | Elastic Premium EP2 | Needed when cold-start is unacceptable |5758Avoid the Free and Shared tiers for anything beyond prototyping.5960## 5. Container Apps Environment Considerations6162```bicep63resource containerAppsEnv 'Microsoft.App/managedEnvironments@2024-03-01' = {64 name: 'cae-myapp-prod-eastus'65 location: location66 properties: {67 zoneRedundant: true // prod only; not available in all regions68 workloadProfiles: [69 {70 name: 'Consumption'71 workloadProfileType: 'Consumption'72 }73 ]74 }75}76```7778Use the **Consumption** workload profile for scale-to-zero. Use **Dedicated** (D4 / D8) for workloads needing guaranteed CPU/memory.7980## 6. When to Use AKS (and When Not To)8182**Use AKS only when you need:**83- Custom Kubernetes operators or CRDs84- Specific runtime scheduling (GPU node pools, spot nodes)85- Existing Kubernetes manifests and Helm charts from on-premises8687**Do not use AKS when:**88- The requirement is "containerized" — Container Apps handles this with far less ops overhead89- The team doesn't have Kubernetes expertise — cluster upgrades, node pool management, and CNI configuration are non-trivial90- Cost is a concern — AKS system node pools run 24/7; Container Apps Consumption scales to zero9192## 7. Checklist Before Finalizing9394- [ ] Workload shape mapped to the decision tree (§1)95- [ ] Scale-to-zero requirement confirmed or ruled out96- [ ] Zone redundancy requirement confirmed for prod97- [ ] Ops team capability assessed (AKS requires Kubernetes expertise)98- [ ] Cost estimate produced for the selected SKU99- [ ] Seam to `claude-app-engineering` invoked if the workload is a Claude app100101## Pitfalls102103- Defaulting to AKS because the team "uses Docker" — Container Apps covers 90% of container use cases without Kubernetes ops overhead104- Using the Consumption plan for Functions that must always be warm — use Elastic Premium105- Choosing App Service for scale-to-zero HTTP APIs — it doesn't scale to zero; use Container Apps106- Forgetting zone redundancy for prod workloads — outages in a single AZ take the service down107108## See Also109110- [`../../agents/app-platform-engineer.md`](../../agents/app-platform-engineer.md) — compute decisions, scaling, and Claude-app Azure hosting111- [`../../agents/azure-architect.md`](../../agents/azure-architect.md) — WAF reliability and service selection112- [`../../CLAUDE.md`](../../CLAUDE.md) — house opinion: pick compute from the tree; AKS only when you need Kubernetes