azure-cli
azure-cli copied to clipboard
az network public-ip create
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az network public-ip create
Errors:
cannot import name 'BatchManagementClient' from 'azure.mgmt.batch' (/usr/lib/python3/dist-packages/azure/mgmt/batch/__init__.py)
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 233, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 558, in execute
self.commands_loader.load_arguments(command)
...
network/private_link_resource_and_endpoint_connections/resource_providers/batch_provider.py, ln 6, in <module>
from azure.mgmt.batch import BatchManagementClient
ImportError: cannot import name 'BatchManagementClient' from 'azure.mgmt.batch' (/usr/lib/python3/dist-packages/azure/mgmt/batch/__init__.py)
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az network public-ip create --resource-group {} --name {} --sku {} --allocation-method {} --query {} -o {}
Expected Behavior
Environment Summary
Linux-5.11.0-7620-generic-x86_64-with-glibc2.33
Python 3.9.5
Installer: DEB
azure-cli 2.18.0 *
Extensions:
azure-devops 0.19.0
Additional Context
network
It's dependency issues. Please upgrade CLI by command.
az upgrade
Just ran into this issue and https://github.com/Azure/azure-cli/issues/19122#issuecomment-893176500 didn't fix the problem. Please reopen.