Below thread helped a lot and it sorted out. so i sheared below thread for other ...
Pls ,close this ...
Thanks,
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
I am using https://www.nuget.org/packages/Microsoft.Azure.Management.Fluent 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) to find out list of details of ADD user by using of Azure Mgmt SDK fluent
Pls, advice on above.
Thanks
Below thread helped a lot and it sorted out. so i sheared below thread for other ...
Pls ,close this ...
Thanks,