I am trying to create a PremiumV2 EP2 app service plan to host my functions using terraform but I'm getting the error
Error: creating/updating App Service Plan "GcElastic01" (Resource Group "GC-RG-PLANS"): web.AppServicePlansClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="Requested feature is not available in resource group GC-RG-PLANS. Please try using a different resource group or create a new one."
I have a couple other app service plans in the resource group some being PremiumV2 Windows plans, S1 windows plans and a Linux S3 plan. Is there any reason this would stop me from creating an elastic EP2 plan or is there something else I'm doing wrong?
The terraform for my app service plan is
resource "azurerm_app_service_plan" "shared" {
+ id = (known after apply)
+ kind = "elastic"
+ location = "uksouth"
+ maximum_elastic_worker_count = (known after apply)
+ maximum_number_of_workers = (known after apply)
+ name = "GcElastic01"
+ reserved = true
+ resource_group_name = "GC-RG-PLANS"
+ sku {
+ capacity = 1
+ size = "EP2"
+ tier = "ElasticPremium"
}
}