Skip to content
DocsTry Aspire
DocsTry

AzureKubernetesEnvironmentResource.withWorkloadIdentity

Method
📦 Aspire.Hosting.Azure.Kubernetes v13.5.1-preview.1.26420.4
interface AzureKubernetesEnvironmentResource {
// ... omitted for brevity
withWorkloadIdentity(enabled?: boolean): AzureKubernetesEnvironmentResource;
}

Signature

methodwithWorkloadIdentitybuilder
Enables or disables workload identity on the AKS environment, allowing pods to authenticate to Azure services using federated credentials.
withWorkloadIdentity(enabled?: boolean): AzureKubernetesEnvironmentResource
enabledbooleanoptional= True
AzureKubernetesEnvironmentResource

Defined on

This method is defined on the following type: