Azure / Azure/azure-cli

Impossible to use ConvertFrom-JSON with AZ CLI

Open
#24,336 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Azure CLI Team Core customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
vmDataObj='{ "type": "Array", "value": [ { "name": "AZ-AS-VN-N-SEQ018200", "nicName": "AZ-AS-VN-N-SEQ018200-NIC" } ] }' | ConvertFrom-Json

**Describe the bug**
/_temp/AZ_CLI_GITHUB_ACTION_1666366427673.sh: line 1: ConvertFrom-Json: command not found

**To Reproduce**
- uses: azure/CLI@v1
with:
azcliversion: 2.41.0
inlineScript: |
vmDataObj='{ "type": "Array", "value": [ { "name": "AZ-AS-VN-N-SEQ018200", "nicName": "AZ-AS-VN-N-SEQ018200-NIC" } ] }' | ConvertFrom-Json

**Expected behavior**
Should convert JSON string to PS object

**Environment summary**
latest az cli version

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.