Get-AzureRmSubscription与REST API - 为REST指定租户ID? [英] Get-AzureRmSubscription vs REST API - specify tenant ID for REST?

查看:56
本文介绍了Get-AzureRmSubscription与REST API - 为REST指定租户ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用相同的经过身份验证的会话,PS cmlet Get-AzureRmSubscription返回28个值,REST API返回21(https://management.azure.com/subscriptions?api-version=2016-06-01)。  结果的不同之处在于PS cmdlet返回2个租户ID(21 + 7)中的所有
订阅,而REST API仅返回其中一个租户ID(21)的结果。 

Using the same authenticated session, PS cmlet Get-AzureRmSubscription returns 28 values and the REST API returns 21 (https://management.azure.com/subscriptions?api-version=2016-06-01).  The difference in the results is the PS cmdlet returns all the subscriptions across 2 tenant ID's (21+7), whereas the REST API is only returning results for one of the tenant ID's (21). 

我没有看到REST API调用的任何文档来指定租户ID。 是否有人知道切换此值的方法,或者更好地返回与PS cmdlet相同的结果?

I don't see any documentation for the REST API call to specify a tenant ID.  Is anyone aware of a way to toggle this value, or better yet to return the same results as the the PS cmdlet?

推荐答案

Hi tickermcse, we are able to reproduce the behavior above and actively investigating this on our end.

我们希望尽快为您提供更好的指导。

We hope to have better guidance for you soon.

感谢您的耐心等待。


这篇关于Get-AzureRmSubscription与REST API - 为REST指定租户ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆