azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az aks create : AttributeError: 'NoneType' object has no attribute 'client_id'

Open j-coll opened this issue 6 years ago • 5 comments

Describe the bug

Command Name az aks create

Errors:

'NoneType' object has no attribute 'client_id'
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 631, in execute
    raise ex
cli/core/commands/__init__.py, ln 695, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 688, in _run_job
    six.reraise(*sys.exc_info())
...
cli/core/commands/__init__.py, ln 324, in __call__
    return self.handler(*args, **kwargs)
azure/cli/core/__init__.py, ln 574, in default_command_handler
    return op(**command_args)
cli/command_modules/acs/custom.py, ln 1754, in aks_create
    service_principal_profile.client_id, scope=scope):
AttributeError: 'NoneType' object has no attribute 'client_id'

To Reproduce:

Steps to reproduce the behaviour. Note that argument values have been redacted, as they may contain sensitive information.

  • az aks create -g {} -n {} --enable-managed-identity --vnet-subnet-id {}

Expected Behavior

Environment Summary

Linux-4.15.0-58-generic-x86_64-with-debian-stretch-sid
Python 3.6.5
Installer: DEB

azure-cli 2.4.0

Additional Context

j-coll avatar Apr 23 '20 16:04 j-coll

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

ghost avatar Apr 23 '20 23:04 ghost

aks

yonzhan avatar Apr 23 '20 23:04 yonzhan

bug

yungezz avatar Apr 24 '20 12:04 yungezz

Seems to be the same issue as reported there: https://github.com/Azure/azure-cli/issues/12864

mathieu-benoit avatar Apr 30 '20 02:04 mathieu-benoit

This bug is fixed (https://github.com/Azure/azure-cli/pull/13543), and should be available in the next Azure CLI release. Closing for now :)

Jen7714 avatar May 29 '20 16:05 Jen7714