# MicrosoftGraphServicePrincipalProxy

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

## Definition

```typescript
interface MicrosoftGraphServicePrincipalProxy {
  accountEnabled: BicepValueProxy | boolean;
  appId: BicepValueProxy | string;
  appRoleAssignmentRequired: BicepValueProxy | boolean;
  description: BicepValueProxy | string;
  readonly id: BicepValueProxy | string;
  notes: BicepValueProxy | string;
  notificationEmailAddresses: Aspire_Hosting_Azure_Provisioning_EntraId_Generated_ListOfStringProxy;
  owners: Aspire_Hosting_Azure_Provisioning_EntraId_Generated_ListOfStringProxy;
  tags: Aspire_Hosting_Azure_Provisioning_EntraId_Generated_ListOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAccountEnabled(): void;
  clearAppId(): void;
  clearAppRoleAssignmentRequired(): void;
  clearDescription(): void;
  clearNotes(): void;
}
```

## Properties

- `accountEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AccountEnabled provisioning property.
- `appId`: `BicepValueProxy | string` `get - set` -- Gets or sets the AppId provisioning property.
- `appRoleAssignmentRequired`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AppRoleAssignmentRequired provisioning property.
- `description`: `BicepValueProxy | string` `get - set` -- Gets or sets the Description provisioning property.
- `id`: `BicepValueProxy | string` `get` -- Gets the Id provisioning property.
- `notes`: `BicepValueProxy | string` `get - set` -- Gets or sets the Notes provisioning property.
- `notificationEmailAddresses`: [Aspire_Hosting_Azure_Provisioning_EntraId_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/aspire-hosting-azure-provisioning-entraid-generated-listofstringproxy.md) `get - set` -- Gets or sets the NotificationEmailAddresses provisioning property.
- `owners`: [Aspire_Hosting_Azure_Provisioning_EntraId_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/aspire-hosting-azure-provisioning-entraid-generated-listofstringproxy.md) `get - set` -- Gets or sets the Owners provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_EntraId_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/aspire-hosting-azure-provisioning-entraid-generated-listofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphserviceprincipalproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAccountEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphserviceprincipalproxy/clearaccountenabled.md) -- `method` -- Clears the AccountEnabled provisioning property.
    ```typescript
  clearAccountEnabled(): void
  ```
- [clearAppId](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphserviceprincipalproxy/clearappid.md) -- `method` -- Clears the AppId provisioning property.
    ```typescript
  clearAppId(): void
  ```
- [clearAppRoleAssignmentRequired](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphserviceprincipalproxy/clearapproleassignmentrequired.md) -- `method` -- Clears the AppRoleAssignmentRequired provisioning property.
    ```typescript
  clearAppRoleAssignmentRequired(): void
  ```
- [clearDescription](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphserviceprincipalproxy/cleardescription.md) -- `method` -- Clears the Description provisioning property.
    ```typescript
  clearDescription(): void
  ```
- [clearNotes](/reference/api/typescript/aspire.hosting.azure.provisioning.entraid/microsoftgraphserviceprincipalproxy/clearnotes.md) -- `method` -- Clears the Notes provisioning property.
    ```typescript
  clearNotes(): void
  ```
