我需要创建一个服务主体并通过 Python
SDK 为其分配一个新角色。我目前正在执行此 stackoverflow question 中列出的步骤.
我目前正在处理角色分配,但我陷入了需要输入 principal_id
的步骤。例如根据需要here创建新的角色分配。在 Azure
门户中哪里可以找到此服务主体 ID
?是 Azure
门户 -> Active Directory -> 应用注册 -> 我的应用下的 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?
这些都不是。应该有一个与应用程序绑定(bind)的服务主体。这将有一个 ID。
PS。该屏幕截图是 Azure 门户中的“应用程序注册”边栏选项卡。关于azure - 在哪里可以从 Azure 门户找到服务主体 GUID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59882486/