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

The command az aks create failed with an unexpected error

Open SatishRanjan opened this issue 7 years ago • 4 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az aks create

Errors:

'registrationState'
Traceback (most recent call last):
pip-install-rg707cll\knack\knack\cli.py, ln 206, in invoke
cli\core\commands\__init__.py, ln 603, in execute
cli\core\commands\__init__.py, ln 661, in _run_jobs_serially
cli\core\commands\__init__.py, ln 654, in _run_job
Temp\pip-install-rg707cll\six\six.py, ln 693, in reraise
cli\core\commands\__init__.py, ln 631, in _run_job
cli\core\commands\__init__.py, ln 306, in __call__
...
pip-install-rg707cll\requests\requests\hooks.py, ln 31, in dispatch_hook
msrest\msrest\universal_http\requests.py, ln 275, in user_hook_cb
pip-install-rg707cll\msrestazure\msrestazure\tools.py, ln 57, in register_rp_hook
pip-install-rg707cll\msrestazure\msrestazure\tools.py, ln 102, in _register_rp
KeyError: 'registrationState'

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 aks create --resource-group {} --name {} --node-count {} --enable-addons {} --generate-ssh-keys

Expected Behavior

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.73

Additional Context

SatishRanjan avatar Sep 18 '19 22:09 SatishRanjan

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

ghost avatar Sep 19 '19 01:09 ghost

@SatishRanjan which add-ons were you trying to enable on your cluster?

seanmck avatar Sep 20 '19 23:09 seanmck

Need more information to investigate. Please reopen if this is still happening and you can answer my question above.

seanmck avatar Sep 27 '19 18:09 seanmck

I am able to repro this issue. I used the below to create a cluster and got the error. The addon I tired for was http_application_routing

az aks create --resource-group RG-XX-XX --name myAKSCluster --service-principal xxxxxxxxxxxxxxxxxxx --client-secret xxxxxxxxx --node-count 1 --enable-addons http_application_routing`

'registrationState' Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\knack\cli.py", line 197, in invoke cmd_result = self.invocation.execute(args) File "C:\Users\trdai\AppData\Local\Temp\pip-install-6nyhv9qe\azure-cli-core\azure\cli\core\commands_init_.py", line 369, in execute ... if rp_info['registrationState'] == 'Registered': KeyError: 'registrationState'

gurupasupathy avatar Dec 08 '19 09:12 gurupasupathy