简体   繁体   English

在哪里可以找到 Azure 门户中的服务主体 GUID

[英]Where can I find Service Principal GUID from Azure Portal

I need to create a service principal and assign a new role to it through Python SDK.我需要创建一个服务主体并通过Python SDK 为其分配一个新角色。 I am currently following steps as listed from this stackoverflow question .我目前正在执行此stackoverflow 问题中列出的步骤。

I am currently working on the role assignment and I am stuck on the step of I need to input a principal_id .我目前正在处理角色分配,我卡在需要输入principal_id的步骤上。 For example, as needed here to create a new role assignment.例如, 这里根据需要创建一个新的角色分配。 Where can I find this service principal id in Azure portal?Azure门户中的何处可以找到此服务principal id Is it the appId or objectId under Azure Portal-> Active Directory -> App Registration -> My app?Azure Portal->Active Directory->App Registration->My app下的appId还是objectId

What I am confused about is which Id for my app is corresponding to the principal_id it's asking here.我感到困惑的是我的应用程序的哪个 ID 对应于它在此处询问的 principal_id。 Is it the appId or the objectId for my app?它是我的应用程序的 appId 还是 objectId?

None of these.都不是。 There should be a service principal tied to the application.应该有一个与应用程序相关联的服务主体。 That will have an ID.那将有一个ID。

在此处输入图像描述

PS.附言。 The screenshot is of the App Registration blade in the Azure portal.屏幕截图是 Azure 门户中的应用注册边栏选项卡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我在哪里可以看到应用服务 azure 登录 Azure 门户 - Where can i see App Service azure logs in Azure Portal "如何使用 Azure 门户或 PowerShell 将服务主体设置为应用程序注册所有者?" - how I can make an service principal as an App Registration Owner with azure portal or PowerShell? 在Azure门户中的哪里可以找到web.config? - Where can I find the web.config in the Azure portal? 如果从 .NET SDK 服务主帐户创建,则无法在 Azure 门户中看到实时流媒体频道 - Not able to see Live Streaming channel in Azure Portal if created from .NET SDK Service Principal account Azure门户显示错误的服务主体对象ID - Azure portal is showing wrong service Principal object Id 如何使用主目录中的服务主体管理 Azure AD B2C - How can I manage Azure AD B2C with a service principal from the main directory 在哪里可以找到 Azure 应用服务的 docker 容器日志 - Where can I find docker container logs for Azure App Service 在哪里可以找到以前版本的 Azure Service Fabric SDK? - Where can I find previous versions of Azure Service Fabric SDKs? 如何找到我的 AKS 群集的服务主体机密? - How can I find the service principal secret of my AKS cluster? 如何找到与服务主体关联的资源组? - How can I find resource group associated with service principal?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM