withEntraIdReference

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26567.5
interface ContainerResource {
// ... omitted for brevity
withEntraIdReference(
source: EntraIdApplicationResource,
connectionName?: string,
downstreamApisPrefix?: string): IResourceWithEnvironment;
}

Signature

methodwithEntraIdReferencebuilder
Injects Entra ID authentication configuration into a consuming resource and sets the prefix of its DownstreamApis entries.
withEntraIdReference(
source: EntraIdApplicationResource,
connectionName?: string,
downstreamApisPrefix?: string): IResourceWithEnvironment
sourceEntraIdApplicationResourceThe Entra ID application resource to reference.
connectionNamestringoptionalThe environment variable prefix. Defaults to AzureAd for .NET program resources and the registration's name otherwise.
downstreamApisPrefixstringoptionalThe configuration prefix of the DownstreamApis entries. Defaults to DownstreamApis.
IResourceWithEnvironment

Applies to

This method applies to the following types: