Output format is not respected on macOS #20336
Labels
Core
CLI core infrastructure
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Milestone
Describe the bug
On macOS, after upgrading from Azure CLI v2.29.0 to v2.30.0, output formatting options aren't respected. Formatting options have been verified to work on v2.30.0 running Windows or Ubuntu, but not macOS.
Command Name
All commands where output is formatted, e.g.
az group create --name foo --location eastus --output none
andaz iot hub list --query "[?name=='foo'] | length(@)"
.Errors:
Response is always formatted as JSON indifferent of
--output
argument, and--query
with a filter doesn't work at all but instead displays the result as if the query wasn't even applied.To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Example 1 where output format isn't respected.
Example 2 where query isn't respected, and the response should be the length of the result, not the result itself.
Expected Behavior
Example 1
Example 2
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: