Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithAdminConsent

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26565.2
func (EntraIdApplicationResource) WithAdminConsent(
api EntraIdApplicationResource,
scopeNames []string,
) EntraIdApplicationResource

Signature

methodWithAdminConsentbuilder
Grants tenant-wide consent to delegated permissions that this registration declared for another registration in the AppHost.
WithAdminConsent(
api EntraIdApplicationResource,
scopeNames []string,
) EntraIdApplicationResource
apiEntraIdApplicationResourceThe registration that exposes the scopes.
scopeNames[]stringThe names of scopes already declared with WithApiPermissions.
EntraIdApplicationResource

The resource builder for chaining.

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

Applies to

This method applies to the following types: