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
<PackageReference Include="Agentics.Extensions.Aspire.AzureCapabilityBroker" Version="0.2.10" />
<PackageVersion Include="Agentics.Extensions.Aspire.AzureCapabilityBroker" Version="0.2.10" />
<PackageReference Include="Agentics.Extensions.Aspire.AzureCapabilityBroker" />
paket add Agentics.Extensions.Aspire.AzureCapabilityBroker --version 0.2.10
#r "nuget: Agentics.Extensions.Aspire.AzureCapabilityBroker, 0.2.10"
#:package Agentics.Extensions.Aspire.AzureCapabilityBroker@0.2.10
#addin nuget:?package=Agentics.Extensions.Aspire.AzureCapabilityBroker&version=0.2.10
#tool nuget:?package=Agentics.Extensions.Aspire.AzureCapabilityBroker&version=0.2.10
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 | 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
- Agentics.Extensions.Aspire.AzureResourceManager (>= 0.2.3)
- Agentics.Extensions.Aspire.MicrosoftTenant (>= 0.2.3)
- Aspire.Hosting (>= 13.4.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.