Skip to content

panoramicdata/MicrosoftAzure.Api

Repository files navigation

MicrosoftAzure.Api

Nuget Nuget License: MIT Codacy Badge

A simple Microsoft Azure API nuget package.

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 MicrosoftAzureSentinelClient(new MicrosoftAzureSentinelClientOptions
{
	TenantId = "your-tenant-id",
	ClientId = "your-client-id",
	ClientSecret = "your-client-secret"
});

var signInLogs = await Client
	.SecurityInsights
	.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

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages