appservice kube - No module named 'azure.mgmt.web.v2021_01_01'
See original GitHub issueRelated command az appservice kube
Describe the bug When running the az appservice kube command, getting the following output.
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: No module named 'azure.mgmt.web.v2021_01_01'
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 363, in handler
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", line 429, in show_exception_handler
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 361, in handler
File "C:\Users\arcdemo\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 305, in show_kube_environments
client = _get_kube_client(cmd)
File "C:\Users\arcdemo\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 301, in _get_kube_client
return client.kube_environments
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/web/_web_site_management_client.py", line 627, in kube_environments
ModuleNotFoundError: No module named 'azure.mgmt.web.v2021_01_01'
To Reproduce
tl;dr
Run the the az appservice kube command in Windows PoSH (not tested in Bash but it looks like it will happen there as well)
Long version
Follow the Deploy an App Service app using custom container on AKS using an ARM Template Azure Arc Jumpstart scenario
Expected behavior az appservice kube command should result in no Python dependency errors
Environment summary Az CLI 2.42.0 Windows PoSH
Additional context Related to Azure Arc Jumpstart opened issue ModuleNotFoundError: No module named ‘azure.mgmt.web.v2021_01_01’ #1549
/cc @Devinwong
Issue Analytics
- State:
- Created 10 months ago
- Comments:24 (11 by maintainers)
Top Results From Across the Web
No module named 'azure.mgmt.managementgroups ... - GitHub
Steps to reproduce the behavior: Install ansible 2.10 and azurecollection1.10 offline and run ansible task: name: "Defined Resource Group."
Read more >ModuleNotFoundError: No module named 'azure.mgmt ...
After upgrading ansible to version 2.10.5 and python3.8.10 my playbook.yml fails with this error. ModuleNotFoundError: No module named 'azure.
Read more >No module named 'azure.mgmt.monitor.version'
Installed Ansible 2.10 and collection azure.azurecollection. I am unable to get Ansible 2.10 working with collections for my existing playbooks. COMPONENT NAME.
Read more >Azure App Service (Flask) - No module named 'run'
Azure App Service (Flask): ModuleNotFoundError: No module named 'run'. Hey, I'm currently working on my college project and tried deploying ...
Read more >No module named 'azure.mgmt.monitor.version' although the ...
After upgrading ansible to version 2.10.5 and python3.8.10 my playbook.yml fails with this error. ModuleNotFoundError: No module named…
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
@navba-MSFT Why is this marked as completed if we have no fix for latest CLI version?
Yes. As part of our automation we always do a fresh install