app service plan Requested feature is not available in resource group

Ayrton Clark 1 Reputation point
2022-02-21T22:35:59.74+00:00

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"
        }
    }
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,770 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 18,486 Reputation points MVP
    2022-02-22T03:59:02.953+00:00

    All apps in a resource group and in a region land on one scale unit. . If you are creating a new App Service Plan within an existing same resource group that once already had a non-premiumV2 App Service Plan deployed in it, then this scale unit will not support PremiumV2 tier creation since it belongs to an older deployment. However, creation of an App Service Plan in your region should still be possible if you create a brand new App Service Plan in a new Resource Group.


    If the Answer is helpful, please click "Accept Answer" and upvote it

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.