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" />
<PackageReference Include="MicrosoftAzure.Api" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=MicrosoftAzure.Api&version=2.0.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MicrosoftAzure.Api
A .NET API for Microsoft Azure.
Makes calls to endpoints set out here:
- LogAnalytics Query API: o https://learn.microsoft.com/en-us/rest/api/loganalytics/query/get?view=rest-loganalytics-2022-10-27-preview&tabs=HTTP
- SecurityInsights API: o https://learn.microsoft.com/en-us/rest/api/securityinsights/operation-groups?view=rest-securityinsights-2024-03-01
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 | Versions 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.
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Refit (>= 10.1.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Bumped version for breaking changes.
Improved filtering.