简体   繁体   中英

How can I get service principal properties using Azure SDK for .Net

I need to get application display name by service principal id in UWP C# project. I found sample Getting started on managing service principals using C# , but this sample based on Microsoft.Azure.Management.Fluent, Microsoft.Azure.Management.Graph.RBAC.Fluent and Microsoft.Azure.Management.ResourceManager.Fluent, which are deprecated. Any other ways to get appId (except http request) I don't know.

Before installing the NuGet packages, use the latest.Net framework in order to resolve few of the deprecated issues.

*For these deprecated packages

Microsoft.Azure.Management.Fluent
Microsoft.Azure.Management.Graph.RBAC.Fluent
Microsoft.Azure.Management.ResourceManager.Fluent

Microsoft has provided alternate packages and the dependencies for the packages.

Use the below highlighted alternate packages For Microsoft.Azure.Management.Fluent and Microsoft.Azure.Management.ResourceManager.Fluent use Azure.ResourceManager

在此处输入图像描述

Azure.ResourceManager

在此处输入图像描述

Azure.ResourceManager

在此处输入图像描述

在此处输入图像描述

And the below package is not deprecated Microsoft.Azure.Management.Graph.RBAC.Fluent

在此处输入图像描述

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