Skip to content
DocsTry Aspire
DocsTry

IAzureRadiusProviderBuilder

Interfacenet10.0
📦 Aspire.Hosting.Radius v13.5.3-preview.1.26425.3
Builder surface exposed inside the WithAzureProvider callback for selecting an Azure credential mode. Exactly one With* method must be called; a repeat call replaces the previous selection.
namespace Aspire.Hosting.Radius.CloudProviders;
public interface IAzureRadiusProviderBuilder
{
// ...
}
WithServicePrincipal(string, string, IResourceBuilder<ParameterResource>)abstract
Configures a Service Principal credential. The client secret value is provided via a ApplicationModel.ParameterResource so its plaintext never appears in the publish artifact. Reference it with builder.AddParameter("azureClientSecret", secret: true).
WithWorkloadIdentity(string, string)abstract
Configures a Workload Identity (federated identity) credential. No long-lived secret is materialized; the identity is bound at deploy time by the hosting Kubernetes cluster's OIDC issuer.
View all methods