TerraformPilot

DevOps

Fix Terraform Error - Azure App Service Plan SKU Not Available

Fix Azure App Service Plan SKU not available errors in Terraform. Check region availability, find valid SKUs, and configure the right pricing tier.

LLuca Berton1 min read

Quick Answer

#

The App Service Plan SKU you requested isn't available in the selected region or subscription. Use az appservice list-locations to find where your SKU is available, or switch to a supported SKU for your region.

The Error

#
Error: creating App Service Plan: the SKU 'P1v3' is not available 
in the location 'westus' for subscription 'xxxx'

What Causes This

#
  • SKU not available in region — not all tiers exist in all Azure regions
  • Subscription type limitation — Free/Dev subscriptions can't use Premium tiers
  • Capacity constraints — region temporarily out of capacity for that SKU

How to Fix It

#

Solution 1: Check Available SKUs

#
# List available App Service Plan SKUs in a region
az appservice list-locations --sku P1V3
 
# Or check what's available where
az appservice list-locations --sku B1

Solution 2: Use a Different SKU

#
resource "azurerm_service_plan" "main" {
  name                = "myapp-plan"
  resource_group_name = azurerm_resource_group.main.name
  location            = azurerm_resource_group.main.location
  os_type             = "Linux"
  sku_name            = "P1v3"  # If not available, try P1v2 or S1
}

Common SKU tiers:

SKUTypevCPURAMUse Case
F1FreeShared1 GBDevelopment
B1Basic11.75 GBDev/test
S1Standard11.75 GBProduction (small)
P1v3Premium v328 GBProduction
P2v3Premium v3416 GBHigh traffic

Solution 3: Try a Different Region

#
resource "azurerm_service_plan" "main" {
  location = "eastus"  # More SKUs available in major regions
  sku_name = "P1v3"
}

Troubleshooting Checklist

#
  1. ✅ Is the SKU available in your region? (az appservice list-locations --sku)
  2. ✅ Does your subscription support this tier?
  3. ✅ Can you use a different SKU that's available?
  4. ✅ Would switching regions solve it?
#

Conclusion

#

Not all App Service SKUs are available in all Azure regions. Check availability with az appservice list-locations, try major regions (East US, West Europe) for best SKU coverage, or use a different pricing tier.

#Terraform#Troubleshooting#DevOps#Error Fix#Azure

Share this article