AzureForHumans 0.4.0
dotnet add package AzureForHumans --version 0.4.0
NuGet\Install-Package AzureForHumans -Version 0.4.0
<PackageReference Include="AzureForHumans" Version="0.4.0" />
<PackageVersion Include="AzureForHumans" Version="0.4.0" />
<PackageReference Include="AzureForHumans" />
paket add AzureForHumans --version 0.4.0
#r "nuget: AzureForHumans, 0.4.0"
#:package AzureForHumans@0.4.0
#addin nuget:?package=AzureForHumans&version=0.4.0
#tool nuget:?package=AzureForHumans&version=0.4.0
AzureForHumans
A human-friendly wrapper for Azure SDK that simplifies common Azure operations like deploying Azure Functions, managing resource groups, and working with storage accounts.
Installation
dotnet add package AzureForHumans
Features
- Simple Azure Function Deployment: Deploy Azure Functions with minimal configuration
- Resource Group Management: Create and manage Azure resource groups easily
- Storage Account Integration: Simplified storage account creation and management
- App Service Plan Management: Easy creation of app service plans for your functions
- Built-in Authentication: Uses Azure DefaultCredential for seamless authentication
Quick Start
Basic Usage
using AzureIntegration;
// Initialize Azure client
var azureCloud = new AzureCloud();
// Create a resource group
var resourceGroup = await azureCloud.CreateResourceGroup("my-resource-group");
// Deploy an Azure Function
var azureFunction = await azureCloud.DeployAzureFunction(
"/path/to/your/function/project",
"my-function-app"
);
Console.WriteLine($"Function deployed at: https://{azureFunction.Url}");
Working with Resource Groups
var azureCloud = new AzureCloud();
// Get all resource groups
var resourceGroups = await azureCloud.GetResourceGroups();
foreach (var rg in resourceGroups)
{
Console.WriteLine($"Resource Group: {rg.Name}");
}
// Create a new resource group
var newRg = await azureCloud.CreateResourceGroup("my-new-rg");
// Delete a resource group
await azureCloud.DeleteResourceGroup("my-old-rg");
Storage Account Management
var azureCloud = new AzureCloud();
var resourceGroup = await azureCloud.CreateResourceGroup("my-rg");
// Create a storage account
var storageAccount = await resourceGroup.CreateStorageAccount("myapp");
Console.WriteLine($"Storage Account: {storageAccount.Name}");
Console.WriteLine($"Connection String: {storageAccount.ConnectionString}");
Prerequisites
- .NET 8.0 or later
- Azure subscription
- Azure credentials configured (Azure CLI, Visual Studio, environment variables, etc.)
Authentication
This library uses Azure's DefaultAzureCredential
which automatically tries various authentication methods:
- Environment variables
- Managed Identity
- Visual Studio authentication
- Azure CLI authentication
- Interactive browser authentication
Make sure you're authenticated using one of these methods before using the library.
Configuration
The library uses the following default settings:
- Location: West Europe (you can modify this in the source code)
- Runtime: .NET 8.0 isolated
- App Service Plan: Dynamic (Consumption) plan
Example Projects
Check out the sample Azure Function project included in this repository to see how to structure your functions for deployment.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the LGPL-2.1 License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Azure.Identity (>= 1.14.1)
- Azure.ResourceManager (>= 1.13.1)
- Azure.ResourceManager.AppService (>= 1.4.0)
- Azure.ResourceManager.Resources (>= 1.11.0)
- Azure.ResourceManager.Storage (>= 1.4.3)
- Microsoft.Build (>= 17.11.31)
- Microsoft.Build.Locator (>= 1.9.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.