Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.32k stars 433 forks source link

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

Open obesser opened 1 year ago

obesser commented 1 year ago

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

aelij commented 10 months ago

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.