Agentics.Extensions.Aspire.AzureCapabilityBroker 0.2.10

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

Agentics.Extensions.Aspire.AzureCapabilityBroker

Typed Aspire hosting for the real pks-agent-azure broker against a local MicrosoftTenantResource. The extension owns the container endpoint, health check, data mount, Azure/Graph/ARM environment wiring and idempotent local principal seeding.

The package also owns the broker's four production-shaped custom roles. Seed all four from the same embedded JSON documents used by the deployment guide:

tenant.AddResourceGroup(subscriptionId, resourceGroup)
    .AddAzureCapabilityBrokerRoles();
var broker = builder.AddAzureCapabilityBroker("azure-resource-api", tenant, options =>
{
    options.DataDirectory = Path.Combine(builder.AppHostDirectory, "user-data", "azure-broker");
    options.ClientId = brokerClientId;
    options.SubscriptionId = subscriptionId;
    options.ResourceGroup = resourceGroup;
    options.CommunicationServiceName = communicationService;
    options.RoleDefinitionId = roleDefinitionId;
})
.AddPortalPrincipal("portal", "Local portal", portalToken,
    "identity-contributor", "identity-reaper");

app.WithAzureCapabilityBroker(broker, portalToken);

When developing the broker itself, append .WithLocalSource(sourceDirectory). Otherwise the published broker image is used.

The project uses the sibling Agentics Aspire checkout when present. Its NuGet fallback can be enabled in standalone CI/release after Agentics.Extensions.Aspire.MicrosoftTenant has had its first public release; until then it intentionally stays outside AzureBroker.slnx so the broker's existing standalone build does not acquire an unavailable package dependency.

Local inspector

Add the optional read-only UI after configuring the broker:

var broker = builder.AddAzureCapabilityBroker("azure-resource-api", tenant, options => { /* ... */ })
    .WithLocalSource(sourceRoot)
    .WithEmulatorUI();

WithEmulatorUI() creates a separate local sidecar and excludes it from publish manifests. The sidecar calls a token-protected, secret-free read model on the broker; it does not mount the broker data directory. Production brokers leave that endpoint disabled because the inspector token is only configured by this local Aspire feature.

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

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.2.10 105 8/30/2026
0.2.9 101 8/11/2026
0.2.8 102 8/10/2026
0.2.7 117 8/4/2026