Zip deployment error message is not clear when AzureWebJobsStorage app setting key is missing #30590
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Functions
az functionapp
Possible-Solution
Service Attention
This issue is responsible by Azure service team.
Similar-Issue
Describe the bug
I was trying to deploy a function app using zip deploy on a clean account and there was no app setting for AzureWebJobsStorage.
The error message provided did not mention the lack of AzureWebJobsStorage key - instead sending me on a wild goose chase in the docs to look for something unrelated. I had to turn on debug mode and jump into the source code for the CLI to understand what was wrong with my Azure account.
azure-cli/src/azure-cli/azure/cli/command_modules/appservice/custom.py
Line 923 in ff7d0fd
The Azure CLI does not support this deployment path. Please configure the app to deploy from a remote package using the steps here: https://aka.ms/deployfromurl
How I got there
Related command
Steps to reproduce
New function app with no AzureWebJobsStorage in the app settings
From the resultant zip, try and use the azure CLI to deploy a function app with no
AzureWebJobsStorage
in the app settingsErrors
The Azure CLI does not support this deployment path. Please configure the app to deploy from a remote package using the steps here: https://aka.ms/deployfromurl
Issue script & Debug output
az functionapp deployment source config-zip --resource-group az-test-group --name my-app-name-here --src /azp/_work/1/s/build37.zip --debug --slot staging
The error message is raised out of
validate_zip_deploy_app_setting_exists
azure-cli/src/azure-cli/azure/cli/command_modules/appservice/custom.py
Line 923 in ff7d0fd
Expected behavior
Information telling me about missing app configuration settings keys in the error message, not a please swap to another method to deploy message
Environment Summary
azure-cli 2.67.0
core 2.67.0
telemetry 1.1.0
Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1
Python location '/azp/_work/_tool/Python/3.9.21/x64/bin/python'
Extensions directory '/home/agent/.azure/cliextensions'
Python (Linux) 3.9.21 (main, Dec 12 2024, 19:07:50)
[GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: