# withScope

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/typescript/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Exposes a delegated permission scope that clients can request to call this registration as an API.

## Definition

```typescript
interface EntraIdApplicationResource {
  // ... omitted for brevity
  withScope(
    name: string,
    description: string,
    options?: EntraIdScopeOptions): EntraIdApplicationResource
}
```

## Parameters

- `name` (`string`)
- `description` (`string`)
- `options` ([EntraIdScopeOptions](/reference/api/typescript/aspire.hosting.azure.entraid/entraidscopeoptions.md)) `optional`

## Returns

[EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md) `builder`

## Applies to

- [EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md)
