azure-cli
azure-cli copied to clipboard
az login fails with NotImplementedError: APIVersion 2019-11-01 is not available
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az login
Errors:
APIVersion 2019-11-01 is not available
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
six.reraise(*sys.exc_info())
...
azure/cli/core/_profile.py, ln 856, in find_through_interactive_flow
result = self._find_using_common_tenant(token_entry[_ACCESS_TOKEN], resource)
azure/cli/core/_profile.py, ln 889, in _find_using_common_tenant
tenants = client.tenants.list()
mgmt/resource/subscriptions/subscription_client.py, ln 122, in tenants
raise NotImplementedError("APIVersion {} is not available".format(api_version))
NotImplementedError: APIVersion 2019-11-01 is not available
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 login
Expected Behavior
Environment Summary
Linux-5.3.18-lp152.20.7-default-x86_64-with-glibc2.3.4
Python 3.6.10
Installer: RPM
azure-cli 2.9.0
Extensions:
azure-iot 0.9.1
Additional Context
add to S174
Seems to be the same issue as https://github.com/Azure/azure-cli/issues/13209#issuecomment-652164784. Could you try the workaround and see if that works?