Azure / Azure/azure-cli

Unwanted transform to add resource_group in properties having 'id' object

Open
#27,356 2 comments 0 reactions 2 assignees Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign Azure CLI Team feature-request Network
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

az network virtual-appliance show

**Is your feature request related to a problem? Please describe.**

Yes,
Output of PS, az-cli and rest api should match.
Expected:
"virtualHub": {
"id": "/subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/RahulTestSetup/providers/Microsoft.Network/virtualHubs/RahulTestHub"
},

Error Output
"virtualHub": {
"id": "/subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/RahulTestSetup/providers/Microsoft.Network/virtualHubs/vHUB",
"resourceGroup": "RahulTestSetup"
}

**Describe the solution you'd like**

**Describe alternatives you've considered**

**Additional context**

Attaching debug [output](url)

https://microsoft.sharepoint.com/:t:/t/NVAengineering/EVLNnkTugHhFo4vLGu_0zQUBgvdTyp_19wx7v0oxZEEyQQ?e=UAiZZV

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.