# RoleDefinition Properties

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [RoleDefinition](/reference/api/csharp/aspire.hosting.azure/roledefinition.md)
- Kind: `Properties`
- Members: `2`

Represents a role definition within an Azure resource.

## Id

- Name: `Id`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/RoleDefinition.cs)

The unique identifier for the role definition.

```csharp
public string Id { get; set; }
```

## Name

- Name: `Name`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/RoleDefinition.cs)

The name of the role definition.

```csharp
public string Name { get; set; }
```
