Makoto Oda Thank you for posting your question in Microsoft Q&A. Based on my understanding, you are following doc: Use managed identity for AzureWebJobsStorage (Preview) and have set up Managed Identity successfully with AzureWebJobsStorage__accountName
but facing the issue when performing the deployment from VS code (since it expects AzureWebJobsStorage
).
Unfortunately, Remote build using Managed Identity is not supported yet and please check thread: Support publish when using ManagedIdentity for AzureWebJobsStorage and Run From Package = 1 for updates regarding this implementation (not just for VS Code, it is applicable to other deployments like CLI #25375 as well). For any feedback on this feature, feel free to add a comment on GitHub thread directly with our product team.
The workaround depends on the stack you are using for Azure Functions and here are some steps involved:
- Build the app and Zip it locally.
- MSBuild for .NET
- Pip install for Python
- NPM install for Node.
- Upload the Zip to Storage
- Generate a SAS Token
- Both of these steps are covered in Run your functions from a package file in Azure | Microsoft Learn
- Take the URL from step 3 and enable the Application Setting WEBSITE_RUN_FROM_PACKAGE = {URL}
- Now you application will be running from URL.
I hope this helps with your question and let me know if you have any other questions. Would be happy to answer them. Please accept as "Yes" if the answer is helpful, so that it can help others in the community.