Skip to content

panoramicdata/MicrosoftAzure.Api

Repository files navigation

MicrosoftAzure.Api

Nuget Nuget License: MIT Codacy Badge

A .NET API for Microsoft Azure.

Makes calls to endpoints set out here:

Example usage

using MicrosoftAzure.Api;

var subscriptionId = new Guid("your-subscription-id");
var resourceGroupName = "your-resource-group-name";
var workspaceName = "your-workspace-name";
var workspaceId = getWorkSpaceIdGuid();

var client = new MicrosoftAzureClient(new MicrosoftAzureClientOptions
{
	TenantId = Guid.Parse("your-tenant-id"),
	ClientId = Guid.Parse("your-client-id"),
	ClientSecret = "your-client-secret"
});

var signInLogs = await client
	.LogAnalytics
	.QueryAsync(
		workspaceId,
		new QueryRequest
		{
			Query = "SigninLogs | take 5"
		},
		default)
	.ConfigureAwait(true);

var connectors = await client
	.Sentinel
	.GetConnectorsAsync(
		subscriptionId,
		resourceGroupName,
		workspaceName,
		default)
	.ConfigureAwait(true);

About

A .NET API for Microsoft Azure

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors