# MicrosoftGraphAppRole

- Kind: `class`
- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Azure.EntraId.Provisioning`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphAppRole.cs)
- Inherits: `ProvisionableConstruct`

Models an application role declared on a Microsoft Graph application.

## Definition

```csharp
namespace Aspire.Hosting.Azure.EntraId.Provisioning;

public sealed class MicrosoftGraphAppRole
    : Azure.Provisioning.Primitives.ProvisionableConstruct
{
    // ...
}
```

## Constructors

- [MicrosoftGraphAppRole](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphapprole/constructors.md#constructor)

## Properties

- [AllowedMemberTypes](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphapprole/properties.md#allowedmembertypes) : `BicepList<string>` `get; set` -- Gets or sets who can receive the role: `User`, `Application`, or both.
- [Description](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphapprole/properties.md#description) : `BicepValue<string>` `get; set` -- Gets or sets the role's description.
- [DisplayName](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphapprole/properties.md#displayname) : `BicepValue<string>` `get; set` -- Gets or sets the role's display name.
- [Id](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphapprole/properties.md#id) : `BicepValue<string>` `get; set` -- Gets or sets the stable ID of the application role.
- [IsEnabled](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphapprole/properties.md#isenabled) : `BicepValue<bool>` `get; set` -- Gets or sets whether the role is available for assignment.
- [Value](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphapprole/properties.md#value) : `BicepValue<string>` `get; set` -- Gets or sets the role value included in access tokens.
