您如何获取您的用户所属的 AAD 的所有租户 ID?
How do you get all tenant IDs for AAD your user is part of?
您如何使用 powershell 查找您的 AAD 用户所属的所有 AAD 的所有租户 ID?类似于您登录 portal.azure.com
时看到的内容,无需登录每个 AAD,您可以在下拉列表中看到您的用户帐户所属的目录列表,如下所示。
How do you use powershell to find all tenant IDs for all AADs your AAD user is part of?
如果我们想获取所有的租户ID,我们可以使用Get-AzureRmTenant。
Login-AzureRmAccount
Get-AzureRmTenant
您如何使用 powershell 查找您的 AAD 用户所属的所有 AAD 的所有租户 ID?类似于您登录 portal.azure.com
时看到的内容,无需登录每个 AAD,您可以在下拉列表中看到您的用户帐户所属的目录列表,如下所示。
How do you use powershell to find all tenant IDs for all AADs your AAD user is part of?
如果我们想获取所有的租户ID,我们可以使用Get-AzureRmTenant。
Login-AzureRmAccount
Get-AzureRmTenant