Azure / functions-action

Enable GitHub developers to deploy to Azure Function Apps using GitHub Actions
MIT License
152 stars 75 forks source link

Manged Identities for Storage Account Access error #240

Closed tudorpopams closed 2 months ago

tudorpopams commented 2 months ago

I've followed the guidelines for RBAC as deployment credential and my function app uses a system generated managed identity to access its storage account, however when deploying through Github Actions I get the following error:

Will use WEBSITE_RUN_FROM_PACKAGE to deploy since RBAC is detected and your function app is on Linux Consumption.
Using AzureWebJobsStorage__accountName and RBAC for Blob access.
Error: Execution Exception (state: PublishContent) (step: Invocation)
Error:   This request is not authorized to perform this operation using this permission.
RequestId:<requestid>
Time:<time>
Error:     RestError: This request is not authorized to perform this operation using this permission.

The RBAC has "Contributor" role on both the storage account and the function app and the runtime is NodeJS 20 LTS on Linux.