AzureForHumans 0.11.0

dotnet add package AzureForHumans --version 0.11.0
                    
NuGet\Install-Package AzureForHumans -Version 0.11.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.

                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.

                    
Directory.Packages.props

                    
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.11.0
                    
#r "nuget: AzureForHumans, 0.11.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.11.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.11.0
                    
Install as a Cake Addin
#tool nuget:?package=AzureForHumans&version=0.11.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
  • Container App Deployment: Build a project's Dockerfile and run it as an Azure Container App
  • 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}");

Deploying a Container App

var azureCloud = new AzureCloud();

// Builds the Dockerfile in "MyApp", pushes the image and runs it as a container app
await using var containerApp = await azureCloud.DeployContainerApp(
    projectDirectory: "MyApp",
    name: "my-container-app",
    imageTag: commitSha); // optional

Console.WriteLine($"Container App deployed at: {containerApp.Url}");

Each deployment is pushed under a tag of its own and the app is pointed at that tag, so redeploying under the same name always replaces what is running. Pass imageTag (a commit, a build number) to be able to tell which build an app is running; without it each deployment gets a timestamped tag. :latest is pushed alongside, but nothing is deployed from it.

The call returns once the new revision is running, not merely once the app's URL answers, which the previous revision keeps doing while the new one starts.

Disposing the returned AzureContainerApp deletes its resource group.

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.11.0 51 10/1/2026
0.10.0 881 3/23/2026
0.9.0 145 3/20/2026
0.8.1 126 3/17/2026
0.8.0 168 3/13/2026
0.7.1 134 3/12/2026
0.7.0 130 3/12/2026
0.6.0 237 2/9/2026
0.5.0 276 12/15/2025
0.4.0 938 7/22/2025
0.3.1 260 7/7/2025
0.3.0 247 7/3/2025
0.2.0 233 7/2/2025
0.1.1 508 7/1/2025
0.1.0 230 6/30/2025