EntraIdApplicationResource.withAdminConsent

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26567.5
interface EntraIdApplicationResource {
// ... omitted for brevity
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.
scopeNamesstring[]The names of scopes already declared with `WithApiPermissions`.
EntraIdApplicationResource

Defined on

This method is defined on the following type: