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

Where can I find Service Principal GUID from Azure Portal

我需要创建一个服务主体并通过 Python SDK 为其分配一个新角色。我目前正在执行此 .

中列出的步骤

我目前正在处理角色分配,但卡在了我需要输入 principal_id 的步骤。例如,根据需要 here 创建一个新的角色分配。我可以在 Azure 门户中的何处找到此服务 principal id?是Azure门户->活动目录->应用注册->我的应用下的appId还是objectId

What I am confused about is which Id for my app is corresponding to the principal_id it's asking here. Is it the appId or the objectId for my app?

None 个。应该有一个与应用程序相关联的服务主体。那会有一个ID。

PS。屏幕截图是 Azure 门户中的应用注册边栏选项卡。