简体   繁体   中英

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. I am currently following steps as listed from this stackoverflow question .

I am currently working on the role assignment and I am stuck on the step of I need to input a principal_id . For example, as needed here to create a new role assignment. Where can I find this service principal id in Azure portal? Is it the appId or objectId under Azure Portal-> Active Directory -> App Registration -> My app?

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 of these. There should be a service principal tied to the application. That will have an ID.

在此处输入图像描述

PS. The screenshot is of the App Registration blade in the Azure portal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM