您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

查找租户 ID、对象 ID 和合作伙伴关联详细信息Find Tenant ID, Object ID, and partner association details

本文介绍了如何查找租户 ID、对象 ID 和合作伙伴关联详细信息以及各自的订阅 Id。This article describes how to find the Tenant ID, Object ID, and partner association details, along with their respective subscription IDs.

如果需要在 Azure Cloud Shell 中获取这些项的屏幕截图以用于调试帮助,请跳转到 " 查找租户"、"对象" 和 "合作伙伴 ID 关联" 进行调试If you need to get screenshots of these items in Azure Cloud Shell to use for debugging assistance, jump down to Find Tenant, Object, and Partner ID association for debugging.

备注

只有订阅的所有者才有权执行这些步骤。Only the owner of a subscription has the privileges to perform these steps.

查找租户 IDFind Tenant ID

  1. 转到 Azure 门户Go to the Azure portal.

  2. 选择“Azure Active Directory” 。Select Azure Active Directory.

    Azure 门户中的 Azure Active Directory 图标。

  3. 选择“概述”。Select Overview. 租户 ID 应该出现在 " 基本信息" 下。Your Tenant ID should appear under Basic information.

    在 Azure 门户中选择组。

查找订阅和角色Find subscriptions and roles

  1. 中转到 Azure 门户并选择上述步骤1和步骤2中所述 Azure Active DirectoryGo to the Azure portal and select Azure Active Directory as noted in steps 1 and 2 above.

  2. 选择 订阅Select Subscriptions.

    Azure 门户中的 "订阅" 图标。

  3. 查看订阅和角色。View subscriptions and roles.

    Azure 门户中的订阅屏幕。

查找合作伙伴 IDFind Partner ID

  1. 导航到 "订阅" 页,如前一部分中所述。Navigate to the Subscriptions page as described in the previous section.

  2. 选择一个订阅。Select a subscription.

  3. 在 " 计费" 下,选择 " 合作伙伴信息"。Under Billing, select Partner information.

    左侧导航栏中的 "合作伙伴信息"。

查找用户 (对象 ID) Find User (Object ID)

  1. 使用具有相应管理权限的所需租户中的帐户登录到 Office 365 管理门户Sign in to the Office 365 Admin Portal with an account in the desired tenant with the appropriate administrative rights.

  2. 在左侧菜单中,展开底部的 " 管理中心 " 部分,然后选择 "Azure Active Directory" 选项以在新的浏览器窗口中启动管理控制台。In the left-side menu, expand the Admin Centers section at the bottom and then select the Azure Active Directory option to launch the admin console in a new browser window.

  3. 选择“用户”。Select Users.

  4. 浏览到或搜索所需的用户,然后选择帐户名称以查看用户帐户的配置文件信息。Browse to or search for the desired user, then select the account name to view the user account’s profile information.

  5. 对象 ID 位于右侧的标识部分。The Object ID is located in the Identity section on the right.

    Azure Active Directory 管理中心。

  6. 通过在左侧菜单中选择 "访问控制" (IAM) ,然后选择 "角色分配" 来查找 角色分配Find role assignments by selecting Access control (IAM) in the left menu, then Role assignments.

    Azure 资源的角色分配。

查找用于调试的 IdFind IDs for debugging

本部分介绍如何查找租户、对象和合作伙伴 ID 关联以便进行调试。This section describes how to find tenant, object, and partner ID association for debugging purposes.

  1. 转到 Azure 门户Go to the Azure portal.

  2. 通过选择右上方的 PowerShell 图标来打开 Azure Cloud Shell。Open Azure Cloud Shell by selecting the PowerShell icon at the top-right.

    屏幕右上角的 PowerShell 图标。

  3. 选择 " PowerShell"。Select PowerShell.

    选择 "PowerShell" 链接。

  4. 选择 " 订阅 " 框,选择合作伙伴链接到的 "订阅" 框,然后 创建存储Select the Subscription box to choose the one to which the partner is linked, then Create Storage. 这是一次操作;如果已设置了存储,请转到下一步。This is a one-time action; if you already have storage set up, proceed to the next step.

    选择 "创建存储" 按钮。

  5. 创建 (或已) 存储将打开 Azure Cloud Shell "窗口。Creating (or already having) storage opens the Azure Cloud Shell window.

    "Azure Cloud Shell" 窗口。

  6. 对于合作伙伴关联详细信息,请在此命令中安装扩展:For partner association details, install the extension with this command:
    az extension add --name managementpartner.az extension add --name managementpartner.
    Azure Cloud Shell 将注意是否已安装该扩展:Azure Cloud Shell will note if the extension is already installed:

    显示该扩展的 Azure Cloud Shell 窗口已经安装。

  7. 使用以下命令检查合作伙伴详细信息:Check partner details using this command:
    az managementpartner show --partner-id xxxxxx
    示例:az managementpartner show --partner-id 4760962Example: az managementpartner show --partner-id 4760962.
    对齐命令结果的屏幕截图,如下所示:Snap a screenshot of the command results, which will look similar to this:

    显示用于查看合作伙伴 ID 的前一个命令的结果的示例屏幕。

备注

如果多个订阅需要屏幕截图,请使用以下命令在订阅之间切换:If multiple subscriptions require a screenshot, use this command to switch between subscriptions:
az account set --subscription "My Demos"

后续步骤Next steps