Azure Function Publish fails with "Consumption functions apps are not available in a location and resource group that match a non-Consumption functions app"

Rob Kribs 1 Reputation point
2021-07-21T02:19:20.807+00:00

When trying to publish a new Azure Function project from Visual Studio 2019 I have started receiving the error "Consumption functions apps are not available in a location and resource group that match a non-Consumption functions app". I have selected our normal resource group and location (north central U.S.) but now something is preventing us from being able to publish to that same location and resource group.

All functions in that resource group had been consumption functions. However, we were getting started with an Azure Data Factory demo and tried to publish the ADF project to its own new resource group and that failed. So we ended up publishing it to our main resource group. Ever since doing so we have been unable to publish any new Azure functions to this resource group.

Error is displayed in the attached.
116505-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,002 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jaliya Udagedara 2,821 Reputation points MVP
    2021-07-21T07:09:34.637+00:00

    I am suspecting this has something to do with the other resources in that resource group (especially the ADF resources). Can you try removing ADF related resources from the RG and redeploying. It will help us isolate the issue.

    If it resolves the issue, then we can figure out why you can't deploy your ADF project to a new resource group and tackle that separately.

    Hope this makes sense!


  2. MayankBargali-MSFT 70,451 Reputation points
    2021-07-27T06:31:43.227+00:00

    @Rob Kribs Looks like you might hit this limitation. Can you confirm what are the function app resources (Consumption/non-consumption) in your resource group and what are the OS and location for individual function app. Did you observe the same behavior in new resource group with all the combination of your existing function app in your failed resource group.

    0 comments No comments

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.