Webapp:az webapp create failed with an unexpected error after upgrade to azure-cli 2.10.1
See original GitHub issueDear Sir/Madam,
Command Name
az webapp create
Errors:
cli.azure.cli.core.util : The command failed with an unexpected error. Here is the traceback:
The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.util : 'configs'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 215, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 654, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 709, in _run_job
cmd_copy.exception_handler(ex)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/commands.py", line 55, in _polish_bad_errors
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 688, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 325, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 779, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 167, in create_webapp
match['setter'](cmd=cmd, stack=match, site_config=site_config)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 2527, in update_site_config
for k, v in stack['configs'].items():
KeyError: 'configs'
'configs'
Describe the bug Our release pipeline runs on hosted Azure DevOps agents. Releases that worked fine yesterday, do not work anymore. It looks like the DevOps agents have upgraded azure-cli from 2.9.1 to 2.10.1.
The scripts are run on Powershell Core running on ubuntu-20.4 agents, but I have also tried ubuntu-18.04.
To Reproduce
Upgrade azure-cli from 2.9.1 to 2.10.1 and use az webapp create
Expected behavior No errors
Environment summary
[command]/usr/bin/az --version
azure-cli 2.10.1
command-modules-nspkg 2.0.3
core 2.10.1
nspkg 3.0.4
telemetry 1.0.4
Extensions:
azure-devops 0.18.0
Python location '/opt/az/bin/python3'
Extensions directory '/opt/az/azcliextensions'
Python (Linux) 3.6.10 (default, Aug 6 2020, 08:50:24)
[GCC 7.5.0]
Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
Read more >azure-cli 2.24.2 - PyPI
The following block creates a new resource group in the 'westus' region, then creates a new Ubuntu VM. We automatically provide a series...
Read more >Docker Compose release notes
Dependencies update: Updated Docker CLI version used in CI to v20.10.17. ... a bug that caused Compose to raise unexpected errors when attempting...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:54727 - "gentoo-stats --update fails with error message" status:RESOLVED ... Bug:211559 - "webapp-config doesn't work on g/fbsd out of the box" ...
Read more >azure-cli: az webapp commands failing: API version 2022-03 ...
az webapp commands are failing with the following stack trace: $ az webapp list. The command failed with an unexpected error. ... need...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@calvinsID thank you for your fast response. When can we expect azure-cli 1.10.2 to be available on the Azure DevOps agents? In the meantime what can I do to workaround this issue?
@fengzhou-msft to help with