Deployment issue with Azure App Service with Terraform: 'Dynamic SKU, Linux Worker' not available in resource group

Anita A 110 Reputation points
2024-02-19T09:36:41.58+00:00

Hello,
while trying to deploy App Service Plan thought terraform I get this error:
Code="BadRequest" Message="Requested features 'Dynamic SKU, Linux Worker' not available in resource group. Please try using a different resource group or create a new one." I am trying to deploy a Consumption Service Plan (Linux, Y1), and in the resource group I already have (Windows, S1) and (Linux, P0v3) service plans. The issue happens on prod environment, on dev environment it works ( with a slight difference, the (Linux, P0v3) service plan was added last). What could be the reason for this? Are there any limitations for resource groups?
Thanks!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,937 questions
{count} votes

Accepted answer
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2024-02-20T08:37:15.6733333+00:00

    @Anita A , Thanks for follow-up and your update.

    Scenario:

    Create a app in an existing Resource Group (RG) that has ever contained another function app or web app, with both Windows and Linux workers on RG, and consumption Service Plan.

    Issue:

    Error encountered {"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"59324","Message":"Requested features 'Dynamic SKU, Linux Worker' not available in resource group**

    Possible causes:

    The reason this happens is due to how function app and web app plans are mapped to different pools of resources when being created. Different SKUs require a different set of infrastructure capabilities.

    Limitations for creating new function apps in an existing resource group

    This can happen when the following conditions are met:

    • You create a function app in an existing resource group that has ever contained another function app or web app. For example, Linux Consumption apps are not supported in the same resource group as Linux Dedicated or Linux Premium plans.
    • Your new function app is created in the same region as the previous app.
    • The previous app is in some way incompatible with your new app. This can happen between SKUs, operating systems, or due to other platform-level features, such as availability zone support.

    Solution:

    Create your function app and hosting plan in a new RG.

    0 comments No comments

0 additional answers

Sort by: Most 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.