# MicrosoftGraphAppRoleAssignedToProxy

- 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 MicrosoftGraphAppRoleAssignedTo Azure Provisioning model.

## Definition

```typescript
interface MicrosoftGraphAppRoleAssignedToProxy {
  appRoleId: BicepValueProxy | string;
  readonly id: BicepValueProxy | string;
  principalId: BicepValueProxy | string;
  resourceId: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAppRoleId(): void;
  clearPrincipalId(): void;
  clearResourceId(): void;
}
```

## Properties

- `appRoleId`: `BicepValueProxy | string` `get - set` -- Gets or sets the AppRoleId provisioning property.
- `id`: `BicepValueProxy | string` `get` -- Gets the Id provisioning property.
- `principalId`: `BicepValueProxy | string` `get - set` -- Gets or sets the PrincipalId provisioning property.
- `resourceId`: `BicepValueProxy | string` `get - set` -- Gets or sets the ResourceId provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphapproleassignedtoproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAppRoleId](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphapproleassignedtoproxy/clearapproleid.md) -- `method` -- Clears the AppRoleId provisioning property.
    ```typescript
  clearAppRoleId(): void
  ```
- [clearPrincipalId](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphapproleassignedtoproxy/clearprincipalid.md) -- `method` -- Clears the PrincipalId provisioning property.
    ```typescript
  clearPrincipalId(): void
  ```
- [clearResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphapproleassignedtoproxy/clearresourceid.md) -- `method` -- Clears the ResourceId provisioning property.
    ```typescript
  clearResourceId(): void
  ```
