azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

Cannot publish when identity-based storage connection is used (AzureWebJobsStorage__accountName)

Open obesser opened this issue 2 years ago • 5 comments

The issue is described in #2671 but the conversation there is locked. It is also marked as fixed in #3306 but it isn't.

When attempting a remote build, I get Azure Functions Core Tools does not support this deployment path. There is an exact name match for AzureWebJobsStorage instead of prefix match:

https://github.com/Azure/azure-functions-core-tools/blob/eb2d8a509b340948009dc2ea0c765eca228f2639/src/Azure.Functions.Cli/Actions/AzureActions/PublishFunctionAppAction.cs#L281-L284

obesser avatar May 21 '23 15:05 obesser

I would also suggest migrating away from the deprecated package WindowsAzure.Storage which hasn't been updated since 2018. With the latest package Azure.Storage.Blobs you can use DefaultAzureCredential to authenticate.

aelij avatar Jan 07 '24 15:01 aelij

@aelij any updates on this issue?

benedikt-mue avatar Jan 25 '25 00:01 benedikt-mue

I'm not on the Azure Functions team

aelij avatar Jan 25 '25 05:01 aelij

Any update on this?

rosh2020 avatar Jun 04 '25 00:06 rosh2020

Same problem here. I have disabled local (key based) authentication on der storage account (which is widely recognized as the more secure setting) used by my Azure Function and even when AzureWebJobsStorage__accountName is set in the function app, publishing with func azure functionapp publish <name> (func tools version 4.1.0) fails with "Azure Functions Core Tools does not support this deployment path. Please configure the app to deploy from a remote package using the steps here: https://aka.ms/deployfromurl"

christian-vorhemus avatar Aug 14 '25 06:08 christian-vorhemus