Skip to content

Issue with azure cli command invalid json #29900

Description

@khanwasmic

Describe the bug

Getting this error frequently and at times it works

az vm list-skus --location westeurope --query [?name=='Standard_E64ads_v5'].{caps:capabilities} -o json

ERROR: JSON is invalid: Unterminated string starting at: line 1 column 20290984 (char 20290983)

script returned exit code 1

Related command

az vm list-skus --location westeurope --query [?name=='Standard_E48ads_v5'].{caps:capabilities} -o json

Errors

ERROR: JSON is invalid: Unterminated string starting at: line 1 column 20290984 (char 20290983)

script returned exit code 1

Issue script & Debug output

az vm list-skus --location westeurope --query [?name=='Standard_E64ads_v5'].{caps:capabilities} -o json

Expected behavior

it should work properly without error

Environment Summary

azure-cli 2.39.0 *

core 2.39.0 *
telemetry 1.0.6 *

Extensions:
storage-preview 0.8.3
resource-graph 2.1.0

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Python location '/opt/az/bin/python3'
Extensions directory '/home/jenkins/.azure/cliextensions'

Python (Linux) 3.10.5 (main, Jul 29 2022, 03:26:59) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotSimilar-Issueact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions