-
Notifications
You must be signed in to change notification settings - Fork 458
Open
Description
During publish, the Core Tools checks for the presence of AzureWebJobsStorage. This is only strictly required in Linux, but we perform the check on Windows as well. The error message unfortunately assumes Linux though, so the message makes no sense when failing to deploy to a Windows app.
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."); | |
} |
I think it is reasonable to preserve the check over Windows but modify the error message. Related, the conditional here should be revised to capture identity-based connections for AzureWebJobsStorage, which is filed as a separate issue: #2671
Metadata
Metadata
Assignees
Labels
No labels