How to Fix Flex Consumption Plan Permission Errors

⏱️1 min read
Share:

I ran into a permission error when moving Azure Functions to the Flex Consumption plan.

At the time I was deploying with the Azure CLI; it told me an authorization issue existed but never revealed which permission was missing, so I spent a while poking around.

Once I switched the Azure Pipelines task from AzureCLI@2 to AzureFunctionApp@2, the failure message finally pointed out the exact permission that needed to be granted.

The culprit was the Microsoft.Web/sites/publishxml/action permission. Granting it cleared the error and the deployment succeeded.

Hope this helps somebody else.

Share:

Related Articles

Describe Azure resources as ARM Template
Guides

Describe Azure resources as ARM Template

ARM Template is a json file that defines Azure resources. Learn how to create ARM Templates efficiently for deploying new resources.

mark241
Connect backend to Azure API Management
Guides

Connect backend to Azure API Management

Learn how to add APIs to API Management using ARM Template. Use operations, policy and backend resources to connect to your backend.

mark241