question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az aks enable-addons --addons ingress-appgw throws python error

See original GitHub issue

az feedback auto-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:closed
  • Created 4 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
akshaysnguptacommented, Jun 12, 2020

@mhsh64 You should see image in the Use Azure Cloud Shell

1reaction
akshaysnguptacommented, Jun 11, 2020

@mhsh64 thanks, we will add this to the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az aks addon - Microsoft Learn
Show status and configuration for an enabled Kubernetes addon in a given cluster. az aks addon update. Update an already enabled Kubernetes addon....
Read more >
How to install azure-keyvault-secrets-provider add-on
I have an AKS kubernetes cluster provisioned with terraform . And I need to enable the azure-keyvault-secrets-provider add-on. Using the azure ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found