DioRed.Common.AzureStorage 4.0.0

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

DioRed.Common.AzureStorage

Small helpers for Azure Tables (Azure.Data.Tables) and Azure Blobs (Azure.Storage.Blobs).

Target framework: .NET 10

Quick start

Shared-key (Azure)

var settings = AzureStorageSettings.MicrosoftAzureSharedKey(
    accountName: "...",
    accountKey: "..."
);

var storage = new AzureStorageClient(settings);

TableClient table = storage.Table("MyTable");
BlobClient  blob  = storage.Blob(containerName: "my-container", blobName: "path/file.json");

TokenCredential (Entra ID)

using Azure.Identity;

var settings = AzureStorageSettings.MicrosoftAzureToken(
    accountName: "...",
    tokenCredential: new DefaultAzureCredential()
);

var storage = new AzureStorageClient(settings);

Connection string

var settings = AzureStorageSettings.FromConnectionString("...connection string...");
var storage = new AzureStorageClient(settings);

Azurite (local)

var settings = AzureStorageSettings.Azurite();
var storage = new AzureStorageClient(settings);

Notes

  • AzureStorageClient.Table(...) caches TableClient instances per table name.
  • AzureStorageClient.Container(...) caches BlobContainerClient instances per container name.
  • AzureStorageClient.Blob(container, blob) is a convenience method that returns Container(container).GetBlobClient(blob).

Breaking changes vs older versions

  • Removed netstandard2.0 target; the library targets .NET 10 only.
  • Blob access now uses BlobServiceClient created with credentials. The old Blob(string blobName) API was removed. Use Blob(string containerName, string blobName) instead.
  • Settings can be created from shared-key, token credential, or connection string.
Product 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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DioRed.Common.AzureStorage:

Package Downloads
DioRed.Vermilion.ChatStorage.AzureTable

Azure Table Storage chat storage for Vermilion. Automatically ensures the target table exists.

DioRed.Helianthus.Florets.AzureStorage

AzureStorage floret for Helianthus

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 182 12/22/2025
3.2.0 281 11/12/2025
3.1.11 192 11/2/2025
3.1.10 204 11/2/2025
3.1.9 173 10/13/2025
3.1.8 220 8/10/2025
3.1.7 547 7/25/2025
3.1.6 468 7/25/2025
3.1.5 254 6/20/2025
3.1.4 189 5/21/2025
3.1.3 197 4/23/2025
3.1.2 267 3/23/2025
3.1.1 270 2/4/2025
3.1.0 282 12/10/2024
3.0.0 224 11/30/2024
2.5.2 282 11/14/2024
2.5.1 158 11/14/2024
2.5.0 177 11/14/2024
2.4.1 147 11/14/2024
2.4.0 147 11/14/2024
2.3.5 291 10/31/2024
2.3.4 140 10/31/2024
2.3.3 233 10/2/2024
2.3.2 193 9/12/2024
2.3.1 289 8/2/2024
2.3.0 193 7/12/2024
2.2.2 342 5/20/2024
2.2.1 662 3/12/2024
2.2.0 549 11/24/2023
2.1.0 425 11/16/2023
2.0.0 1,044 2/7/2022
1.1.0 842 2/4/2022
1.0.1 694 12/23/2021
1.0.0 756 7/13/2021