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 vm list -o table does not list the VMs in table format on macOS Monterey version 12.0.1 #20322

Closed
mingqxu7 opened this issue Nov 13, 2021 · 4 comments
Assignees
Labels
Compute az vm/vmss/image/disk/snapshot customer-reported Issues that are reported by GitHub users external to the Azure organization.
Milestone

Comments

@mingqxu7
Copy link

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

az vm list -o table doesn't work

To Reproduce

% az --version
azure-cli 2.30.0

core 2.30.0
telemetry 1.0.6

Python location '/usr/local/Cellar/azure-cli/2.30.0/libexec/bin/python'
Extensions directory '/Users/mingqxu/.azure/cliextensions'

Python (Darwin) 3.9.8 (main, Nov 10 2021, 03:55:42)
[Clang 13.0.0 (clang-1300.0.29.3)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy

% az vm list -o table
[
{
"additionalCapabilities": null,
"applicationProfile": null,
"availabilitySet": null,
"billingProfile": null,
"capacityReservation": null,
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": true,
"storageUri": null
}
...
]

Expected behavior

I expect the output will be in table format, listing the VMs under the current subscription.

Environment summary

brew install azure-cli

Additional context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Nov 13, 2021
@yonzhan yonzhan added the Compute az vm/vmss/image/disk/snapshot label Nov 13, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 13, 2021
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Nov 13, 2021
@yonzhan yonzhan added this to the Backlog milestone Nov 13, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 13, 2021

Compute

@ecker00
Copy link

ecker00 commented Nov 14, 2021

Got the same issue. Every --output xxx seems to always end up as json format.

@zhoxing-ms
Copy link
Contributor

Python (Darwin) 3.9.8 (main, Nov 10 2021, 03:55:42)

@mingqxu7 @ecker00 This is a known issue #20269 due to a serious regression in Python 3.9.8.
Could you use other versions of Python to execute CLI commands?

@jiasli
Copy link
Member

jiasli commented Nov 15, 2021

@zhoxing-ms is right, this is due to a Python 3.9.8 regression (#20269).

I don't think it is easy to install old/specific versions of Python (like 3.9.7) on MacOS with brew (Homebrew/discussions#155). We are working with brew team to release Azure CLI on Python 3.10 as soon as possible which is not affected (Homebrew/homebrew-core#86758).

For now, you may manually install Python 3.10 and install azure-cli with

brew install python@3.10
pip install azure-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute az vm/vmss/image/disk/snapshot customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

5 participants