# EntraIdApplicationResource.withScope

- Module: [Aspire.Hosting.Azure.EntraId](/reference/api/typescript/aspire.hosting.azure.entraid.md)
- Defined on: [EntraIdApplicationResource](/reference/api/typescript/aspire.hosting.azure.entraid/entraidapplicationresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

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;
}
```

## Signature

```typescript
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`

## Defined on

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