IAzureRadiusProviderBuilder
Interfacenet10.0
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{ // ...}Methods2
Section titled MethodsWithServicePrincipal(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.