Bug ID 1187881
Summary regression in az network vnet create
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS Linux
Status NEW
Severity Normal
Priority P5 - None
Component Cloud:Tools
Assignee public-cloud-maintainers@suse.de
Reporter ohering@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 850676 [details]
py-az-westeu.sh.txt

az network vnet create --resource-group x --location y --name z \
 --address-prefix a --subnet-prefix b --subnet-name c
The command failed with an unexpected error. Here is the traceback:
cannot import name 'BatchManagementClient' from 'azure.mgmt.batch'
(/usr/lib/python3.8/site-packages/azure/mgmt/batch/__init__.py)
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py",
line 556, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/lib/python3.8/site-packages/azure/cli/core/__init__.py", line 518,
in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument
registries
  File
"/usr/lib/python3.8/site-packages/azure/cli/command_modules/network/__init__.py",
line 39, in load_arguments
    load_arguments(self, command)
  File
"/usr/lib/python3.8/site-packages/azure/cli/command_modules/network/_params.py",
line 2165, in load_arguments
    from
azure.cli.command_modules.network.private_link_resource_and_endpoint_connections.custom
import TYPE_CLIENT_MAPPING, register_pro
viders
  File
"/usr/lib/python3.8/site-packages/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py",
lin
e 9, in <module>
    from .resource_providers.batch_provider import BatchPrivateEndpointClient
  File
"/usr/lib/python3.8/site-packages/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/resource_provid
ers/batch_provider.py", line 6, in <module>
    from azure.mgmt.batch import BatchManagementClient
ImportError: cannot import name 'BatchManagementClient' from 'azure.mgmt.batch'
(/usr/lib/python3.8/site-packages/azure/mgmt/batch/__init
__.py)

This used to work at some point in the past.


You are receiving this mail because: