Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AD SP Create-For-RBAC fails, even for help page #13693

Closed
sbenalohm opened this issue May 27, 2020 · 3 comments
Closed

AD SP Create-For-RBAC fails, even for help page #13693

sbenalohm opened this issue May 27, 2020 · 3 comments
Assignees
Labels
Account az login/account
Milestone

Comments

@sbenalohm
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az ad sp create-for-rbac

Errors:

'NoneType' object has no attribute '__dict__'
Traceback (most recent call last):
python2.7/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 523, in execute
    self.commands_loader.load_arguments(command)
azure/cli/core/__init__.py, ln 292, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
cli/command_modules/role/__init__.py, ln 29, in load_arguments
    load_arguments(self, command)
...
cli/core/profiles/_shared.py, ln 438, in get_versioned_sdk_path
    api_version = getattr(api_version, operation_group)
cli/core/profiles/_shared.py, ln 235, in __getattr__
    self._resolve()
cli/core/profiles/_shared.py, ln 222, in _resolve
    for operation_group_name, operation_type in self._client_type.__dict__.items():
AttributeError: 'NoneType' object has no attribute '__dict__'

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 ad sp create-for-rbac --help

Expected Behavior

Environment Summary

Linux-4.15.0-88-generic-x86_64-with-Ubuntu-18.04-bionic
Python 2.7.17
Shell: bash

azure-cli 2.0.71 *

Additional Context

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label May 27, 2020
@ghost ghost added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label May 27, 2020
@yungezz yungezz added Account az login/account and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 27, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label May 27, 2020
@yungezz yungezz added this to the S170 milestone May 27, 2020
@yungezz
Copy link
Member

yungezz commented May 27, 2020

hi @arrownj could you pls have a look

@arrownj
Copy link
Contributor

arrownj commented Jun 9, 2020

Hi @sbenalohm , as the CLI version you used is a very old one. Do you mind to upgrade it and try again ? Thanks

@arrownj
Copy link
Contributor

arrownj commented Jul 1, 2020

Hi @sbenalohm , if no more problem, I will close this issue first. You can reopen it or submit a new one if you have other concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account
Projects
None yet
Development

No branches or pull requests

3 participants