Azure / Azure/azure-cli

Issue with azure cli command invalid json

Open
#29,900 3 comments 0 reactions 2 assignees Claimed by @zhoxing-ms View on GitHub
act-observability-squad Auto-Assign Auto-Resolve Azure CLI Team Compute customer-reported question Similar-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.