Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithScope

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26565.2
func (EntraIdApplicationResource) WithScope(
name string,
description string,
options ...*EntraIdScopeOptions,
) EntraIdApplicationResource

Signature

methodWithScopebuilder
Exposes a delegated permission scope that clients can request to call this registration as an API.
WithScope(
name string,
description string,
options ...*EntraIdScopeOptions,
) EntraIdApplicationResource
namestringThe scope's name, which appears in the token's scp claim, such as access_as_user.
descriptionstringWhat the scope allows, shown on the consent page.
options...*EntraIdScopeOptionsOptional settings, described under Options.

Optional parameters are passed as the existing *EntraIdScopeOptions struct.

EntraIdApplicationResource

The registration builder.

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

Applies to

This method applies to the following types: