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.
4,605 questions
{count} votes

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.