Skip to content

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

@JainRah

Description

@JainRah

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

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

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions