How to get list of details of ADD user by using of Azure Mgmt SDK fluent

  • Thread starter Thread starter ganirban_ece
  • Start date Start date
G

ganirban_ece

Guest
Hi All,

I am using Microsoft.Azure.Management.Fluent 1.34.0 for getting resources in Azure with programmatically(C# .NET-Core Web app) and tried to get resources information by providing service principals as below...


string subscriptionId = "xxx";
string clientId = "xxx";
string tenantId = "xxx";
string clientSecret = "xxx";

AzureCredentials cred = new AzureCredentialsFactory()
.FromServicePrincipal(
clientId,
clientSecret,
tenantId,
AzureEnvironment.AzureGlobalCloud
);

var azure = Azure.Configure()
.WithLogLevel(HttpLoggingDelegatingHandler.Level.Basic)
.Authenticate(cred)
.WithSubscription(subscriptionId);
//get total count of ADD user
var identity = azure.AccessManagement.ActiveDirectoryUsers.List().ToArray().Length.ToString();

Any sample code(C#.NET-Core Web app) or is it possible to find out list of details of ADD users by using of Azure Mgmt SDK fluent.

Pls, advice on above.

Thanks

Continue reading...
 
Back
Top