Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithFederatedManagedIdentityCredential

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26565.2
func (EntraIdApplicationResource) WithFederatedManagedIdentityCredential(
managedIdentityClientId string,
options ...*EntraIdTokenExchangeOptions,
) EntraIdApplicationResource

Signature

methodWithFederatedManagedIdentityCredentialbuilder
Configures a pre-existing managed identity trust for token acquisition, without provisioning or assigning an identity.
WithFederatedManagedIdentityCredential(
managedIdentityClientId string,
options ...*EntraIdTokenExchangeOptions,
) EntraIdApplicationResource
managedIdentityClientIdstringThe client GUID of a user-assigned managed identity that the registration already trusts.
options...*EntraIdTokenExchangeOptionsOptional settings, described under Options.

Optional parameters are passed as the existing *EntraIdTokenExchangeOptions struct.

EntraIdApplicationResource

The registration builder.

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

Applies to

This method applies to the following types: