Skip to content

Bad error messages on checks for AzureWebJobsStorage during publish #2672

@mattchenderson

Description

@mattchenderson

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.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions