AzLocal.Core 0.1.0-alpha.1

This is a prerelease version of AzLocal.Core.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package AzLocal.Core --version 0.1.0-alpha.1
                    
NuGet\Install-Package AzLocal.Core -Version 0.1.0-alpha.1
                    
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="AzLocal.Core" Version="0.1.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzLocal.Core" Version="0.1.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="AzLocal.Core" />
                    
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 AzLocal.Core --version 0.1.0-alpha.1
                    
#r "nuget: AzLocal.Core, 0.1.0-alpha.1"
                    
#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 AzLocal.Core@0.1.0-alpha.1
                    
#: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=AzLocal.Core&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AzLocal.Core&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Tool

azlocal — Azure services. Local development.

azlocal

CI NuGet: release pending License: MIT

Run a local Azure emulator for .NET development and automated tests. Work with blobs, test secrets, queues, and resource groups through the official Azure SDK clients, without an Azure subscription.

Packages

Package Use
azlocal Command-line tool and bundled emulator host
AzLocal.Client Local Azure SDK clients registered through dependency injection
AzLocal.Core Shared dependency; installed automatically with the client

You need the .NET 10 SDK. The first planned testing release is 0.1.0-alpha.1. These commands work after that version is published.

Start the emulator

dotnet tool install --global azlocal --version 0.1.0-alpha.1
azlocal trust-cert
azlocal start
azlocal wait

The HTTPS endpoint is https://127.0.0.1:4566; Service Bus uses local AMQP on port 5672. Certificate trust depends on your operating system. Use azlocal status to check the host and azlocal stop to stop it.

Certificate setup

azlocal trust-cert runs dotnet dev-certs https --trust. Run it as the same user who starts the emulator and approve the trust prompt when requested. Verify with:

dotnet dev-certs https --check --trust

On Linux, run dotnet dev-certs https --trust --verbose and follow its trust-store instructions. Older certificates may not cover 127.0.0.1. A trust problem can cause wait to time out even when the host process is running. See the platform and CI HTTPS guide.

To change the HTTPS port, stop the host, run azlocal start --port 5001, and use azlocal wait --port 5001. Match that address in options.BaseUrl. The AMQP port is configured separately; see host configuration.

Connect your application

From your application project:

dotnet add package AzLocal.Client --version 0.1.0-alpha.1

Register clients in an ASP.NET Core application's Program.cs:

using AzLocal.Client;
using Azure.Storage.Blobs;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAzLocal(options =>
{
    options.BaseUrl = "https://127.0.0.1:4566";
    options.BlobAccountName = "myaccount";
    options.BlobContainerName = "uploads";
    options.KeyVaultName = "myvault";
    options.ServiceBusQueueName = "myqueue";
});
builder.Services.AddScoped<UploadService>();

var app = builder.Build();
app.MapPost("/uploads/{name}", async (
    string name, HttpRequest request, UploadService uploads,
    CancellationToken cancellationToken) =>
{
    await uploads.UploadAsync(name, request.Body, cancellationToken);
    return Results.Ok();
});
app.Run();

public sealed class UploadService(BlobContainerClient container)
{
    public async Task UploadAsync(
        string name, Stream content, CancellationToken cancellationToken)
    {
        await container.CreateIfNotExistsAsync(cancellationToken: cancellationToken);
        await container.GetBlobClient(name).UploadAsync(
            content, overwrite: true, cancellationToken: cancellationToken);
    }
}

SDK clients are singletons. Application services can be scoped or transient. The emulator must already be running; registration does not start the host.

Available services

Service Supported local operations
Blob Storage Container creation and deletion; blob upload, download, listing, properties, and deletion
Key Vault Secrets Set, get, list, and delete secrets; read secret versions
Service Bus queues AMQP single and batch sends, peek, receive, complete, abandon, lock renewal, and dead-letter queues
Resource management Create, read, list, and delete resource groups; read the configured subscription
Managed identity Acquire local test tokens through the registered ManagedIdentityCredential

These operations cover part of the Azure APIs. Managed identity returns test tokens. State can use memory, JSON snapshots, or SQLite. Old development blob data must be recreated after storage format changes.

Documentation and feedback

azlocal is an independent project for local development and testing. It is not affiliated with Microsoft. Licensed under MIT.

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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AzLocal.Core:

Package Downloads
AzLocal.Client

Dependency injection registration and official Azure SDK clients configured for the azlocal local emulator.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.2 46 10/12/2026
0.1.0-alpha.1 55 10/11/2026