# MicrosoftGraphOAuth2PermissionGrantProxy

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

Represents the MicrosoftGraphOAuth2PermissionGrant Azure Provisioning model.

## Definition

```typescript
interface MicrosoftGraphOAuth2PermissionGrantProxy {
  clientId: BicepValueProxy | string;
  consentType: BicepValueProxy | string;
  readonly id: BicepValueProxy | string;
  resourceId: BicepValueProxy | string;
  scope: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearClientId(): void;
  clearConsentType(): void;
  clearResourceId(): void;
  clearScope(): void;
}
```

## Properties

- `clientId`: `BicepValueProxy | string` `get - set` -- Gets or sets the ClientId provisioning property.
- `consentType`: `BicepValueProxy | string` `get - set` -- Gets or sets the ConsentType provisioning property.
- `id`: `BicepValueProxy | string` `get` -- Gets the Id provisioning property.
- `resourceId`: `BicepValueProxy | string` `get - set` -- Gets or sets the ResourceId provisioning property.
- `scope`: `BicepValueProxy | string` `get - set` -- Gets or sets the Scope provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphoauth2permissiongrantproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearClientId](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphoauth2permissiongrantproxy/clearclientid.md) -- `method` -- Clears the ClientId provisioning property.
    ```typescript
  clearClientId(): void
  ```
- [clearConsentType](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphoauth2permissiongrantproxy/clearconsenttype.md) -- `method` -- Clears the ConsentType provisioning property.
    ```typescript
  clearConsentType(): void
  ```
- [clearResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphoauth2permissiongrantproxy/clearresourceid.md) -- `method` -- Clears the ResourceId provisioning property.
    ```typescript
  clearResourceId(): void
  ```
- [clearScope](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphoauth2permissiongrantproxy/clearscope.md) -- `method` -- Clears the Scope provisioning property.
    ```typescript
  clearScope(): void
  ```
