-
Notifications
You must be signed in to change notification settings - Fork 458
Open
Labels
DeploymentCore Tools Deployments issuesCore Tools Deployments issues
Description
We are currently checking for AzureWebJobsStorage during func azure functionapp deploy
:
azure-functions-core-tools/src/Azure.Functions.Cli/Actions/AzureActions/PublishFunctionAppAction.cs
Lines 241 to 244 in 6a070fb
if (!functionApp.AzureAppSettings.ContainsKey("AzureWebJobsStorage") && functionApp.IsDynamic) | |
{ | |
throw new CliException($"'{FunctionAppName}' app is missing AzureWebJobsStorage app setting. That setting is required for publishing consumption linux apps."); | |
} |
Today this is just looking for an exact-match key, which fails when using an identity-based connection. In that model, there may be one or more keys prefixed with "AzureWebJobsStorage__". For example, the simplest configuration just has "AzureWebJobsStorage__accountName" which just takes the storage account name as a value. The Core Tools should treat these setups as equivalently valid and allow deployment to proceed.
Related to: Azure/azure-cli#25375
Metadata
Metadata
Assignees
Labels
DeploymentCore Tools Deployments issuesCore Tools Deployments issues