[英]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.