az aks kollect command fails ...
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks kollect
Errors:
invalid syntax (custom.py, line 1399)
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 291, in load_arguments
self.command_table[command].load_arguments() # this loads the arguments via reflection
cli/core/commands/__init__.py, ln 291, in load_arguments
super(AzCliCommand, self).load_arguments()
...
azure/cli/core/__init__.py, ln 528, in get_op_handler
op = import_module(mod_to_import)
lib64/python2.7/importlib/__init__.py, ln 37, in import_module
__import__(name)
cliextensions/aks-preview/azext_aks_preview/custom.py, ln 1399
f'save them to the storage account '
^
SyntaxError: invalid syntax
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 kollect -h
Expected Behavior
Environment Summary
Linux-4.12.14-lp151.28.20-default-x86_64-with-SuSE-12-x86_64
Python 2.7.14
Shell: bash
azure-cli 2.0.76 *
Extensions:
aks-preview 0.4.43
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
az aks kollect command failed · Issue #4407 - GitHub
Describe the bug Command Name az aks kollect Extension Name: aks-preview. Version: 0.5.51. Errors: The command failed with an unexpected error.
Read more >Resolve az aks command invoke failures - Azure
Resolve az aks command invoke failures in Azure CLI when you try to access a private Azure Kubernetes Service (AKS) cluster.
Read more >Ensure Azure AKS cluster monitoring is enabled
To enable Azure Monitor for an existing AKS cluster, use the following command: az aks enable-addons -a monitoring -n rg-weu-my-cluster -g ...
Read more >AKS monitoring and management - Intercept cloud
The 'az aks' command is used to connect to your AKS cluster. If you have only one subscription then you won't need to...
Read more >Creating a cross-zone Azure Kubernetes Service (AKS) cluster
In the event of a power outage, or any other form of failure in one of the ... We'll use the az aks...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello the following commands did the trick, you can close the thread. Thanks for your help
server:~ # zypper refresh server:~ # zypper update azure-cli server:~ # az extension add --name aks-preview server:~ # az --version azure-cli 2.5.1 core 2.5.1 Extensions: aks-preview 0.4.44 Python location ‘/usr/bin/python3’ Extensions directory ‘/root/.azure/cliextensions’ Python (Linux) 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC] server:~ #
Hi @i008817, I’d like to make sure I understand you clearly. Have you configured your local machine to the correct python version and you are still facing issues with az aks kollect? Or are you looking for a different solution from the one described here - #2529 (comment)?