Skip to content

Check for AzureWebJobsStorage fails when using identity-based connection #2671

@mattchenderson

Description

@mattchenderson

We are currently checking for AzureWebJobsStorage during func azure functionapp deploy:

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

No one assigned

    Labels

    DeploymentCore Tools Deployments issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions