MicrosoftAzure.Api 2.0.16

dotnet add package MicrosoftAzure.Api --version 2.0.16
                    
NuGet\Install-Package MicrosoftAzure.Api -Version 2.0.16
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MicrosoftAzure.Api" Version="2.0.16" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MicrosoftAzure.Api" Version="2.0.16" />
                    
Directory.Packages.props
<PackageReference Include="MicrosoftAzure.Api" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MicrosoftAzure.Api --version 2.0.16
                    
#r "nuget: MicrosoftAzure.Api, 2.0.16"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MicrosoftAzure.Api@2.0.16
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MicrosoftAzure.Api&version=2.0.16
                    
Install as a Cake Addin
#tool nuget:?package=MicrosoftAzure.Api&version=2.0.16
                    
Install as a Cake Tool

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);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.16 198 3/28/2026
2.0.14 499 12/18/2025
2.0.11 1,407 8/21/2024
2.0.9 222 8/21/2024
2.0.7 219 8/15/2024
2.0.5 260 5/31/2024
2.0.4 187 5/31/2024
2.0.1 211 5/31/2024
1.0.22 231 5/12/2024
1.0.18 254 4/17/2024
1.0.17 202 4/17/2024

Bumped version for breaking changes.
Improved filtering.