Open scratch85 opened 3 years ago
up
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @anuragdalmia, @shilpigautam, @ramaganesan-rg.
Author: | scratch85 |
---|---|
Assignees: | - |
Labels: | `Service Attention`, `Subscription` |
Milestone: | - |
Can the ARM team please take a look at this request for the subscriptions public API ?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.
Author: | scratch85 |
---|---|
Assignees: | - |
Labels: | `Service Attention`, `Subscription`, `ARM - Core` |
Milestone: | - |
Based on @anuragdalmia suggestion can ARM team pls look at this request? Have removed subscriptions tag and applied arm one for the ask to be routed.
any update here?
any updates here?
Any news here?
Hi,
I opened this issue as recommended from azure-powershell#12391. Azure Portal uses a very helpful parameter and value "$expand=ancestors" to add to the output on where a subscription is located in the management group tree. This parameter and its values sadly is not part of the specs.
Sample API Call with the parameter $expand (managementGroupAncestors is included in the results):
https://management.azure.com/subscriptions/{SubscriptionId}?api-version=2020-01-01&$expand=ancestors
Sample API Call without the parameter $expand (managementGroupAncestors is not included in the results):
https://management.azure.com/subscriptions/{SubscriptionId}?api-version=2020-01-01
Would be awesome if this parameter could be officially added and described in the specs: https://github.com/Azure/azure-rest-api-specs/blob/2cd7c6eacc5430d8956885e8d19b87ce3f3ebd6e/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json#L95
Many Thanks!