-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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:
azure-cli/src/azure-cli/azure/cli/command_modules/appservice/custom.py
Lines 539 to 545 in d1676f6
| 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') |