Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithAudience

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26565.2
func (EntraIdApplicationResource) WithAudience(audience string) EntraIdApplicationResource

Signature

methodWithAudiencebuilder
Adds an accepted audience for this application.
WithAudience(audience string) EntraIdApplicationResource
audiencestringThe audience value (e.g., api://<client-id>).
EntraIdApplicationResource

The resource builder for chaining.

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

Applies to

This method applies to the following types: