Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"az aks show --resource-group myResourceGroup --name myAKSCluster --output table" returns error #46316

Closed
petetian opened this issue Jan 16, 2020 — with docs.microsoft.com · 10 comments

Comments

Copy link
Contributor

az aks show --resource-group myResourceGroup --name myAKSCluster --output table

returns error:
Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@KrishnaG-MSFT
Copy link
Contributor

@petetian Thanks for your comment! We will review and provide an update as appropriate.

@VikasPullagura-MSFT
Copy link
Contributor

@petetian Can you check the version of Azure CLI on which you are trying this tutorial (you can check by running using az --version).

As per document you should run Azure CLI version 2.0.65 and above. If you are running older version of CLI, upgrade and then you can check this again.

When I tried the tutorial, it is working as expected without any issue. You can run this on Cloud Shell to check this once.

@VikasPullagura-MSFT
Copy link
Contributor

@petetian Any update on this.

@petetian
Copy link
Contributor Author

petetian commented Jan 18, 2020 via email

@petetian
Copy link
Contributor Author

petetian commented Jan 18, 2020 via email

@VikasPullagura-MSFT
Copy link
Contributor

@petetian Thanks for providing additional detail on the issue.
Only difference I see for my cluster and the one you are trying is the k8s versions.
I am uploading the screenshots of both and will have the AKS team look into this and add comments on this.

image

image

@petetian
Copy link
Contributor Author

petetian commented Jan 20, 2020

@VikasPullagura-MSFT : ran the command with debug turned on, here's the snap shot:

az aks get-upgrades --resource-group k8s-aks-cluster-rg-pt --name aks-k8s-cluster --output --debug Command arguments: ['aks', 'get-upgrades', '--resource-group', 'k8s-aks-cluster-rg-pt', '--name', 'aks-k8s-cluster', '--output', '--debug'] Event: Cli.PreExecute [] Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fdb5f4f9d08>, <function OutputProducer.on_global_arguments at 0x7fdb5f031b70>, <function CLIQuery.on_global_arguments at 0x7fdb5f05cbf8>] Event: CommandInvoker.OnPreCommandTableCreate [] Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive','iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm'] Loaded module 'acr' in 0.005 seconds. Loaded module 'acs' in 0.018 seconds. Loaded module 'advisor' in 0.001 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'ams' in 0.005 seconds. Loaded module 'apim' in 0.002 seconds. Loaded module 'appconfig' in 0.002 seconds. Loaded module 'appservice' in 0.009 seconds. Loaded module 'backup' in 0.004 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'batch' in 0.009 seconds. Loaded module 'batchai' in 0.003 seconds. Loaded module 'billing' in 0.002 seconds. Loaded module 'botservice' in 0.003 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'cdn' in 0.003 seconds. Loaded module 'cloud' in 0.001 seconds. Loaded module 'cognitiveservices' in 0.002 seconds. Loaded module 'configure' in 0.001 seconds. Loaded module 'consumption' in 0.002 seconds. Loaded module 'container' in 0.002 seconds. Loaded module 'cosmosdb' in 0.007 seconds. Loaded module 'deploymentmanager' in 0.002 seconds. Loaded module 'dla' in 0.004 seconds. Loaded module 'dls' in 0.003 seconds. Loaded module 'dms' in 0.002 seconds. Loaded module 'eventgrid' in 0.002 seconds. Loaded module 'eventhubs' in 0.003 seconds. Loaded module 'extension' in 0.001 seconds. Loaded module 'feedback' in 0.001 seconds. Loaded module 'find' in 0.001 seconds. Loaded module 'hdinsight' in 0.002 seconds. Loaded module 'interactive' in 0.000 seconds. Loaded module 'iot' in 0.005 seconds. Loaded module 'iotcentral' in 0.001 seconds. Loaded module 'keyvault' in 0.005 seconds. Loaded module 'kusto' in 0.002 seconds. Loaded module 'lab' in 0.003 seconds. Loaded module 'managedservices' in 0.001 seconds. Loaded module 'maps' in 0.001 seconds. Loaded module 'monitor' in 0.005 seconds. Loaded module 'natgateway' in 0.002 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'netappfiles' in 0.003 seconds. Loaded module 'network' in 0.036 seconds. Loaded module 'policyinsights' in 0.002 seconds. Loaded module 'privatedns' in 0.004 seconds. Loaded module 'profile' in 0.001 seconds. Loaded module 'rdbms' in 0.005 seconds. Loaded module 'redis' in 0.002 seconds. Loaded module 'relay' in 0.003 seconds. Loaded module 'reservations' in 0.002 seconds. Loaded module 'resource' in 0.007 seconds. Loaded module 'role' in 0.004 seconds. Loaded module 'search' in 0.001 seconds. Loaded module 'security' in 0.003 seconds. Loaded module 'servicebus' in 0.005 seconds. Loaded module 'servicefabric' in 0.002 seconds. Loaded module 'signalr' in 0.002 seconds. Loaded module 'sql' in 0.008 seconds. Loaded module 'sqlvm' in 0.002 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'storage' in 0.031 seconds. Loaded module 'vm' in 0.017 seconds. Loaded all modules in 0.271 seconds. (note: there's always an overhead with the first module loaded) Extensions directory: '/home/pete/.azure/cliextensions' Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7fdb5e846400>] az_command_data_logger : command args: aks get-upgrades --resource-group {} --name {} --output --debug metadata file logging enabled - writing logs to '/home/pete/.azure/commands'. Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7fdb5e7e9048>] Event: CommandInvoker.OnPostArgumentLoad [] Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7fdb5e812d08>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7fdb5e812ea0>] Event: CommandInvoker.OnCommandTableLoaded [] Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7fdb5c9446a8>] cli.azure.cli.core.parser : az aks get-upgrades: error: argument --output/-o: expected one argument az aks get-upgrades: error: argument --output/-o: expected one argument usage: az aks get-upgrades [-h] [--verbose] [--debug] [--output {json,jsonc,table,tsv,yaml,none}] [--query JMESPATH] [--subscription _SUBSCRIPTION] --resource-group RESOURCE_GROUP_NAME --name RESOURCE_NAME az_command_data_logger : exit code: 2 telemetry.save : Save telemetry record of length 2531 in cache telemetry.check : Negative: The /home/pete/.azure/telemetry.txt was modified at 2020-01-20 17:19:32.566937, which in less than 600.000000 s command ran in 0.350 seconds.

@VikasPullagura-MSFT
Copy link
Contributor

VikasPullagura-MSFT commented Jan 21, 2020

@petetian Thanks for sharing the details.

In the same document, it is mentioned that If no upgrade is available, you will get ERROR: Table output unavailable.

That could be the reason you are seeing the Error. However, I have reproduced this with 1.14 version and I have no issues.

From the information shared I see you missed the argument table to the end of the command.

Please run the command az aks get-upgrades --resource-group k8s-aks-cluster-rg-pt --name aks-k8s-cluster --output table --debug and confirm there are no upgrades.

@VikasPullagura-MSFT
Copy link
Contributor

VikasPullagura-MSFT commented Jan 22, 2020

@petetian We have identified the reason why the Error message (as per document) is returned when --output table is passed in the command. As the agentPoolProfiles is returning null (no updates avaialble for nodepool), we are seeing this output.

However, I am closing this issue as it is not a document bug and we will continue to work with you on the email in which I have engaged internal team to check on this.

@VikasPullagura-MSFT
Copy link
Contributor

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants