az aks enable-addons --addons ingress-appgw throws python error
See original GitHub issue
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
I noticed there’s an option (in preview) to specify ingress-appgw to az aks enable-addons but I get this error
az aks enable-addons --resource-group aksRG --name kaohaks --addons ingress-appgw --appgw-id /subscriptions/{sub-id}/resourceGroups/myagwRG/providers/Microsoft.Network/applicationGateways/allamrajuagw --appgw-name allamrajuagw
The behavior of this command has been altered by the following extension: aks-preview The command failed with an unexpected error. Here is the traceback:
argument of type ‘NoneType’ is not iterable Traceback (most recent call last): File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/knack/cli.py”, line 206, in invoke cmd_result = self.invocation.execute(args) File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/init.py”, line 608, in execute raise ex File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/init.py”, line 666, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/init.py”, line 659, in _run_job six.reraise(*sys.exc_info()) File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/six.py”, line 703, in reraise raise value File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/init.py”, line 636, in _run_job result = cmd_copy(params) File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/init.py”, line 306, in call return self.handler(*args, **kwargs) File “/usr/local/Cellar/azure-cli/2.2.0_1/libexec/lib/python3.8/site-packages/azure/cli/core/init.py”, line 493, in default_command_handler return op(**command_args) File “/Users/kumara/.azure/cliextensions/aks-preview/azext_aks_preview/custom.py”, line 2233, in aks_enable_addons if CONST_INGRESS_APPGW_APPLICATION_GATEWAY_ID in instance.addon_profiles[CONST_INGRESS_APPGW_ADDON_NAME].config: TypeError: argument of type ‘NoneType’ is not iterable
My az cli version is
az version This command is in preview. It may be changed/removed in a future release. { “azure-cli”: “2.2.0”, “azure-cli-command-modules-nspkg”: “2.0.3”, “azure-cli-core”: “2.2.0”, “azure-cli-nspkg”: “3.0.4”, “azure-cli-telemetry”: “1.0.4”, “extensions”: { “aks-preview”: “0.4.33”, “db-up”: “0.1.13”, “dev-spaces”: “1.0.3” } }
Do I need to add an extension before running this command?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (7 by maintainers)

Top Related StackOverflow Question
@mhsh64 You should see
in the Use Azure Cloud Shell
@mhsh64 thanks, we will add this to the docs.