azure-cli: argument of type 'NoneType' is not iterable when running az aks enable-addons
Describe the bug
Getting this error when running az aks enable-addons
after I followed the instructions from azure dashboard :
The previous command that failed for me was az aks browse --resource-group
with the following error :
The kube-dashboard addon was disabled for this managed cluster. To use "az aks browse" first enable the add-on by running "az aks enable-addons --addons kube-dashboard".
Command Name
az aks enable-addons
Errors:
argument of type 'NoneType' is not iterable
Traceback (most recent call last):
Temp\pip-install-mjd5h3hf\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 603, in execute
azure\cli\core\commands\__init__.py, ln 661, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 654, in _run_job
Local\Temp\pip-install-mjd5h3hf\six\six.py, ln 696, in reraise
azure\cli\core\commands\__init__.py, ln 631, in _run_job
azure\cli\core\commands\__init__.py, ln 306, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 487, in default_command_handler
azure\cli\command_modules\acs\custom.py, ln 1845, in aks_enable_addons
azure\cli\command_modules\acs\custom.py, ln 2488, in _ensure_container_insights_for_monitoring
TypeError: argument of type 'NoneType' is not iterable
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az aks enable-addons --addons {} --resource-group {} --name {}
Environment Summary
Windows-10-10.0.17763-SP0
Python 3.6.6
Shell: cmd.exe
azure-cli 2.0.77
Additional Context
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 21 (8 by maintainers)
The proposed fix has been merged into the AKS-preview extension and core build for the S166 sprint. The core release is set for 3/10.
https://github.com/Azure/azure-cli/milestone/83
Can confirm the latest CLI resolved this issue for me.
I uninstalled azure-cli which was pointing to python2.7 and re-installed it
Still i am getting error
getting this exception :