Add Support for using managed identity to connect to storage account #139
Replies: 5 comments
-
This issue is idle because it has been open for 14 days with no activity. |
Beta Was this translation helpful? Give feedback.
-
Please upvote this thread if you need this action to have support for using managed identity to connect to storage account for deploy. The current deployment is dependent on AzureWebJobsStorage. On adding support for using managed identity, one can use AzureWebJobsStorage__accountName but they will need to use RBAC auth option for their workflow. |
Beta Was this translation helpful? Give feedback.
-
Current behavior is to allow the deployment but log a warning. Code of the current warning is defined here: functions-action/src/handlers/resourceValidator.ts Lines 155 to 164 in d2580ab The exact setting "AzureWebJobsStorage" should only be necessary in Linux Consumption with server-side build. Elsewhere, the validation could be removed. In general, publishing clients should allow the "AzureWebJobsStorage__" as a prefix on some settings which satisfies any such check. |
Beta Was this translation helpful? Give feedback.
-
Hey @mattchenderson , when workflow is using publish profile, this action cannot figure out if the app is on Linux consumption or not. Therefore, this warning is displayed regardless of which SKU it is. For Linux Consumption, we need "AzureWebJobsStorage" connection string for deployment whether it is server-side build or not and no matter which client tool is used. Once this dependency is removed from server-side, we can update this action and other client tools. Only exception is when the user has no storage account at all and wants to perform manual deployment. In this case, they set app setting WEBSITE_RUN_FROM_PACKAGE = URL of zip in their external drive and then run sync triggers. In this case, client tools or kudu is not involved. |
Beta Was this translation helpful? Give feedback.
-
This seems to be outdated, I've got it working with managed identity and without the
Interestingly, before I changed the deployment from PublishProfile to use a federated identity, whenever I removed the |
Beta Was this translation helpful? Give feedback.
-
The deploy seems to be dependent on
AzureWebJobsStorage
, while it now not the case that it is always set. Using managed identity one can useAzureWebJobsStorage__accountName
and provide only the name.Using RBAC authentication for deploy in this action one can have access to that storage account so no need for connection string.
I am not sure if this is a bug or a feature request, but it is nice to have this working and it is hopefully not that complicated to do.
Beta Was this translation helpful? Give feedback.
All reactions