Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithWorkloadIdentity

Method
📦 Aspire.Hosting.Azure.Kubernetes v17.0.0
func (AzureKubernetesEnvironmentResource) WithWorkloadIdentity(options ...*WithWorkloadIdentityOptions) AzureKubernetesEnvironmentResource

Signature

methodWithWorkloadIdentitybuilder
Enables or disables workload identity on the AKS environment, allowing pods to authenticate to Azure services using federated credentials.
WithWorkloadIdentity(options ...*WithWorkloadIdentityOptions) AzureKubernetesEnvironmentResource
options...*WithWorkloadIdentityOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithWorkloadIdentityOptions argument.

Enabled*booltrue to enable workload identity (the default); false to disable it.
AzureKubernetesEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: