Skip to content

az functionapp deployment fails when deploying to an app with identity based connection for storageΒ #25375

@paulbatum

Description

@paulbatum

Describe the bug
Deploying to a function app that uses an identity based connection for AzureWebJobsStorage (e.g. AzureWebJobsStorage__accountName) fails validation when running
az functionapp deployment source config-zip.

To Reproduce
Follow the steps outlined here.

Expected behavior
Deployment should complete.

Actual behavior
Deployment fails with the error Could not find a 'AzureWebJobsStorage' application setting

Environment summary
azure-cli 2.11.0
core 2.11.0
telemetry 1.0.5

Extensions:
appservice-kube 0.1.7

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\pbatum.azure\cliextensions'

Python (Windows) 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)]

Additional context

Looks like this validation logic is the problem:

storage_connection = None
for keyval in settings:
if keyval['name'] == 'AzureWebJobsStorage':
storage_connection = str(keyval['value'])
if storage_connection is None:
raise CLIError('Could not find a \'AzureWebJobsStorage\' application setting')

Metadata

Metadata

Labels

Auto-AssignAuto assign by botFunctionsaz functionappService AttentionThis issue is responsible by Azure service team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions