Error when creating a azure function with premium plan

Erfan Nariman 436 Reputation points
2020-12-21T18:10:45.68+00:00

When I create a Azure Function with premium plan I get the following error:

The template deployment 'Microsoft.Web-FunctionApp-Portal-73-9764' is not valid according to the validation procedure. The tracking id is '848a-39-42a0-9a04-7bc7c4'. See inner errors for details.

( I removed some characters, since I am not sure if this information is sensitive).

This does not happen when I create it with a consumption plan.

When I click on the error, I get a more specific message:

{"code":"InvalidTemplateDeployment","message":"The template deployment 'Microsoft.Web-FunctionApp-Portal-... is not valid according to the validation procedure. The tracking id is '...'. See inner errors for details.","details":[{"message":"Index (zero based) must be greater than or equal to zero and less than the size of the argument list."}]}

What is causing this problem?

I have the template.json and parameter.json to share, but I am not sure if it has sensitive information, so I decided not to put it here.

I am not using a template btw. I used the UI on azure portal to click everything together.

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

Accepted answer
  1. Jaliya Udagedara 2,821 Reputation points MVP
    2020-12-23T19:29:06.863+00:00

    Yes, this can happen (have faced the same), and very likely it's because in your resource group (old one) you have some other app service plans.

    There is already a GitHub issue on this, you should be able to get more information from there: Premium - Pricing tier not allowed in existing resource group

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. sadomovalex 3,631 Reputation points
    2020-12-22T15:07:03.657+00:00

    looks like some problems in ARM template or parameter.json files. For troubleshooting create new Azure function with similar signature in new Visual studio project and deploy it to Azure via VS. After that export ARM template (see Export-AzResourceGroup or Export-AzureRmResourceGroup) and compare part of template which defines deployed Azure function with your template.


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.