AzureForHumans 0.4.0

dotnet add package AzureForHumans --version 0.4.0
                    
NuGet\Install-Package AzureForHumans -Version 0.4.0
                    
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="AzureForHumans" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzureForHumans" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="AzureForHumans" />
                    
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 AzureForHumans --version 0.4.0
                    
#r "nuget: AzureForHumans, 0.4.0"
                    
#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 AzureForHumans@0.4.0
                    
#: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=AzureForHumans&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=AzureForHumans&version=0.4.0
                    
Install as a Cake Tool

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:

  1. Environment variables
  2. Managed Identity
  3. Visual Studio authentication
  4. Azure CLI authentication
  5. 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 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. 
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
0.4.0 510 7/22/2025
0.3.1 169 7/7/2025
0.3.0 147 7/3/2025
0.2.0 144 7/2/2025
0.1.1 399 7/1/2025
0.1.0 144 6/30/2025