DenevCloud.AspNetCore.Services.Azure
0.1.1-preview.1
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
This is a prerelease version of DenevCloud.AspNetCore.Services.Azure.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package DenevCloud.AspNetCore.Services.Azure --version 0.1.1-preview.1
NuGet\Install-Package DenevCloud.AspNetCore.Services.Azure -Version 0.1.1-preview.1
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="DenevCloud.AspNetCore.Services.Azure" Version="0.1.1-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DenevCloud.AspNetCore.Services.Azure --version 0.1.1-preview.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DenevCloud.AspNetCore.Services.Azure, 0.1.1-preview.1"
#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.
// Install DenevCloud.AspNetCore.Services.Azure as a Cake Addin #addin nuget:?package=DenevCloud.AspNetCore.Services.Azure&version=0.1.1-preview.1&prerelease // Install DenevCloud.AspNetCore.Services.Azure as a Cake Tool #tool nuget:?package=DenevCloud.AspNetCore.Services.Azure&version=0.1.1-preview.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DenevCloud.AspNetCore.Services.Azure
Easy to use and ready-to-go ASP.NET Core services for Azure
Usage
Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddDenevCloudAzure(Configuration, UseVirtualMachines : true);
}
appsettings.json
"DenevCloud": {
"tenant_id": "tenant_id",
"subscriptionId": "subscriptionId",
"VMclient_id": "VMclient_id",
"VMclient_sercet": "VMclient_sercet",
"VMresource": "https://management.core.windows.net/",
"VMResourceGroup": "VMResourceGroup"
}
Index.cshtml
@using DenevCloud.AspNetCore.Services.Azure.VirtualMachines
@using DenevCloud.AspNetCore.Services.Azure.VirtualMachines.NetworkInterfaces
@inject IVMManager vmManager
@inject INetworkInterfaceManager netManager
@{
ViewData["Title"] = "Home Page";
var vm = vmManager.GetVirtualMachine("Your_VM_Name");
}
<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
<p>Name: @vm.Name</p>
<p>Location: @vm.Location</p>
<p>Public Ipv4: @netManager.GetListPublicIpv4(vm).First()</p>
<p>Public Ipv6: @netManager.GetListPublicIpv6(vm).First()</p>
</div>
List available functionality
DenevCloud.AspNetCore.Services.Azure.VirtualMachines.GetVirtualMachine(string VMName)
| Returns aMicrosoft.Azure.Management.Compute.Models.VirtualMachine
modelDenevCloud.AspNetCore.Services.Azure.VirtualMachines.NetworkInterfaces.GetListPublicIpv4(VirtualMachine virtualMachine, string NicName = null)
| Returns aList<string>
of IPv4s associated with the corresponding VMDenevCloud.AspNetCore.Services.Azure.VirtualMachines.NetworkInterfaces.GetListPublicIpv6(VirtualMachine virtualMachine, string NicName = null)
| Returns a List<string> of IPv6s associated with the corresponding VM
Note: All of the above include Async functionality too
Coming Soon
- Instead of appsettings.json , an Azure Key Vault will be supported
- Azure Key Vault Manager
- Azure Analytics Workspace Manager (with special futures for IIS and Azure CDN Logs)
- Azure DNS Manager
Azure Configuration
Please visit github for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Azure.Management.Compute (>= 48.0.0)
- Microsoft.Azure.Management.Dns (>= 3.0.1)
- Microsoft.Azure.Management.Network (>= 20.5.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Hosting (>= 5.0.0)
- Microsoft.Rest.ClientRuntime.Azure.Authentication (>= 2.4.1)
-
.NETStandard 2.1
- Microsoft.Azure.Management.Compute (>= 48.0.0)
- Microsoft.Azure.Management.Dns (>= 3.0.1)
- Microsoft.Azure.Management.Network (>= 20.5.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Hosting (>= 5.0.0)
- Microsoft.Rest.ClientRuntime.Azure.Authentication (>= 2.4.1)
-
net5.0
- Microsoft.Azure.Management.Compute (>= 48.0.0)
- Microsoft.Azure.Management.Dns (>= 3.0.1)
- Microsoft.Azure.Management.Network (>= 20.5.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Hosting (>= 5.0.0)
- Microsoft.Rest.ClientRuntime.Azure.Authentication (>= 2.4.1)
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 |
---|---|---|
0.1.5-preview.1 | 117 | 1/15/2024 |
0.1.3-preview.1 | 199 | 9/7/2021 |
0.1.2-preview.1 | 173 | 8/10/2021 |
0.1.1-preview.2 | 187 | 8/9/2021 |
0.1.1-preview.1 | 165 | 8/9/2021 |