Bounteous.Azure
0.0.7
dotnet add package Bounteous.Azure --version 0.0.7
NuGet\Install-Package Bounteous.Azure -Version 0.0.7
<PackageReference Include="Bounteous.Azure" Version="0.0.7" />
<PackageVersion Include="Bounteous.Azure" Version="0.0.7" />
<PackageReference Include="Bounteous.Azure" />
paket add Bounteous.Azure --version 0.0.7
#r "nuget: Bounteous.Azure, 0.0.7"
#:package Bounteous.Azure@0.0.7
#addin nuget:?package=Bounteous.Azure&version=0.0.7
#tool nuget:?package=Bounteous.Azure&version=0.0.7
Bounteous.Azure
Shared Azure helpers for .NET — thin, fluent wrappers over the Azure SDK for Key Vault secrets and Blob Storage, with first-class dependency-injection support. Targets .NET 10.
Install
dotnet add package Bounteous.Azure
Key Vault
IKeyVault reads secrets from an Azure Key Vault. It authenticates with
DefaultAzureCredential unless you supply your own TokenCredential.
using Bounteous.Azure.Secrets;
IKeyVault keyVault = new KeyVault()
.WithVaultName("my-vault"); // https://my-vault.vault.azure.net
// Raw string secret
string apiKey = await keyVault.GetKeyAsync("api-key");
// Strongly-typed secret (deserialized from JSON)
MySettings settings = await keyVault.GetKeyAsync<MySettings>("my-settings");
Supply an explicit credential when needed:
var keyVault = new KeyVault()
.WithVaultName("my-vault")
.WithCredentials(new ManagedIdentityCredential());
Dependency injection
using Bounteous.Azure.IoC;
services.AddKeyVault(); // registers IKeyVault -> KeyVault (scoped)
Blob Storage
IBlobStorage saves and reads objects as JSON blobs. The target container is
created if it does not already exist.
using Bounteous.Azure.Storage;
IBlobStorage storage = await new BlobStorage()
.ForAccount("mystorageaccount") // https://mystorageaccount.blob.core.windows.net
.ForContainer("documents");
await storage.SaveAsync("order-123", order);
var order = await storage.ReadAsync<Order>("order-123");
As with Key Vault, authentication defaults to DefaultAzureCredential and can
be overridden via WithCredentials(...).
License
Internal Bounteous shared component.
| Product | Versions 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. |
-
net10.0
- Azure.Identity (>= 1.21.0)
- Azure.Security.KeyVault.Secrets (>= 4.11.0)
- Azure.Storage.Blobs (>= 12.29.0)
- Bounteous.Core (>= 0.0.23)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.