在 Azure 门户中查看托管标识的服务主体View the service principal of a managed identity in the Azure portal

Azure 资源的托管标识在 Azure Active Directory 中为 Azure 服务提供了一个自动托管标识。Managed identities for Azure resources provides Azure services with an automatically managed identity in Azure Active Directory. 此标识可用于通过支持 Azure AD 身份验证的任何服务的身份验证,这样就无需在代码中插入凭据了。You can use this identity to authenticate to any service that supports Azure AD authentication, without having credentials in your code.

本文将介绍如何在 Azure 门户中查看托管标识的服务主体。In this article, you learn how to view the service principal of a managed identity using the Azure portal.

备注

服务主体是企业应用程序。Service principals are Enterprise Applications.

先决条件Prerequisites

查看服务主体View the service principal

该过程演示如何查看启用了系统分配标识的 VM 的服务主体(相同的步骤也适用于应用程序)。This procedure demonstrates how to view the service principal of a VM with system assigned identity enabled (the same steps apply for an application).

  1. 依次单击“Azure Active Directory”、“企业应用程序” 。Click Azure Active Directory and then click Enterprise applications.

  2. 在“应用程序类型” 下,选择“所有应用程序” ,然后单击“应用” 。Under Application Type, choose All Applications and then click Apply.

  3. 在搜索筛选器框中,键入已启用托管标识的 VM 或应用程序的名称,或从显示的列表中选择它。In the search filter box, type the name of the VM or application that has managed identity enabled or choose it from the list presented.

    在门户中查看托管标识服务主体

后续步骤Next steps

Azure 资源的托管标识Managed identities for Azure resources