Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/app-service/sku-selection.md
1# App Service SKU Selection23## SKU Comparison Matrix45| Feature | Free (F1) | Basic (B1-B3) | Standard (S1-S3) | Premium (P0v3-P3v3 and P1Mv3-P5Mv3;P0v4-P3v4 and P1Mv4-P5Mv4) | Isolated (I1v2-I6v2) |6|---------|:-:|:-:|:-:|:-:|:-:|7| **Custom domains** | ❌ | ✅ | ✅ | ✅ | ✅ |8| **TLS/SSL bindings** | ❌ | ✅ (SNI) | ✅ (SNI + IP) | ✅ (SNI + IP) | ✅ (SNI + IP) |9| **Deployment slots** | ❌ | ❌ | 5 | 20 | 20 |10| **Auto-scale** | ❌ | ❌ | ✅ (10 inst.) | ✅ (30 inst.) | ✅ (100 inst.) |11| **VNet integration** | ❌ | ✅ | ✅ | ✅ | ✅ (ASE is in VNet) |12| **Private endpoints** | ❌ | ✅ | ✅ | ✅ | ✅ |13| **Always On** | ❌ | ✅ | ✅ | ✅ | ✅ |14| **Backup/Restore** | ❌ | ❌ | ✅ | ✅ | ✅ |15| **Hybrid Connections** | ❌ | 5 | 25 | 200 | 200 |16| **Traffic Manager** | ✅ | ✅ | ✅ | ✅ | ✅ |17| **SLA** | None | None | 99.95% | 99.95% | 99.95% |1819## Pricing Overview2021| SKU | vCPU | RAM | Storage | Approx. Monthly Cost |22|-----|------|-----|---------|---------------------|23| F1 | Shared | 1 GB | 1 GB | Free |24| B1 | 1 | 1.75 GB | 10 GB | ~$55 |25| B2 | 2 | 3.5 GB | 10 GB | ~$110 |26| S1 | 1 | 1.75 GB | 50 GB | ~$73 |27| S2 | 2 | 3.5 GB | 50 GB | ~$146 |28| P1v3 | 2 | 8 GB | 250 GB | ~$138 |29| P2v3 | 4 | 16 GB | 250 GB | ~$276 |30| P3v3 | 8 | 32 GB | 250 GB | ~$552 |31| I1v2 | 2 | 8 GB | 1 TB | ~$460 |3233> 💡 **Tip:** Figures are representative for **Windows OS** in **Central US**, **as of 2026-04**. Prices vary by region, OS, and offer. Use the [Azure Pricing Calculator](https://azure.microsoft.com/pricing/calculator/) for exact figures.3435### Save by using Reserved Instances and Savings Plans3637Cost savings can be made on Premium V3, Premium V4 and Isolated V2 plans by committing to reserved instances for 1 or 3 year terms, details can found at [https://learn.microsoft.com/azure/cost-management-billing/reservations/prepay-app-service](https://learn.microsoft.com/azure/cost-management-billing/reservations/prepay-app-service).3839Alternatively cost savings can be made using [Azure Savings plans](https://learn.microsoft.com/en-us/azure/cost-management-billing/savings-plan/).4041## Decision Criteria4243```44Production workload?45├─ No → Free (F1) or Basic (B1) for dev/test46└─ Yes47Need deployment slots, auto-scale, or backups?48├─ No → Basic (B1-B3) if budget-constrained (supports VNet integration and Private Endpoints)49└─ Yes50Need network isolation (dedicated ASE)?51├─ Yes → Isolated (I1v2+)52└─ No53Need more than 5 deployment slots or more than 10 instances?54├─ Yes → Premium (P1v3+)55└─ No → Standard (S1-S3) with Private Endpoints and VNet integration56```5758## Feature Unlock Summary5960Key features unlocked at each tier:6162| Upgrade Path | Features Gained |63|-------------|-----------------|64| Free → Basic | Custom domains, TLS/SSL, Always On, VNet Integration, Private Endpoints, Hybrid Connections (5) |65| Basic → Standard | Deployment slots, auto-scale, backups |66| Standard → Premium | More slots (20), higher scale (30 inst.) |67| Premium → Isolated | Full network isolation (ASE), dedicated infrastructure |6869## Bicep — App Service Plan with SKU7071```bicep72resource appServicePlan 'Microsoft.Web/serverfarms@2025-03-01' = {73name: planName74location: location75sku: {76name: 'P1v3'77tier: 'PremiumV3'78capacity: 2 // number of instances79}80kind: 'linux'81properties: {82reserved: true // required for Linux83}84}85```8687## Terraform — App Service Plan with SKU8889```hcl90resource "azurerm_service_plan" "plan" {91name = var.plan_name92location = azurerm_resource_group.rg.location93resource_group_name = azurerm_resource_group.rg.name94os_type = "Linux"95sku_name = "P1v3"96}97```9899## Scaling Within a Tier100101Scale up (change SKU) vs scale out (add instances):102103| Strategy | When to Use | How |104|----------|-------------|-----|105| Scale up | App needs more CPU/RAM | Change SKU (e.g., S1 → S2) |106| Scale out | Handle more concurrent load | Increase instance count or enable auto-scale |107108> ⚠️ **Warning:** Scaling from one tier family to another (e.g., Standard to Premium) may cause a brief restart. Schedule changes during low-traffic windows.109110## Recommendations by Workload111112| Workload | Recommended SKU | Reason |113|----------|----------------|--------|114| Personal blog / prototype | F1 or B1 | Minimal cost, no SLA needed |115| Team dev/test | B1-B2 | Always On, custom domain |116| Production API | S1-S3 (P0v3/P0v4+ for higher scale/perf) | Auto-scale, slots, VNet |117| Enterprise with compliance | P1v3+/P1v4+ | Private endpoints, 20 slots, 30 instances |118| Regulated / multi-tenant SaaS | I1v2+ | Full network isolation |119