# MicrosoftGraphExistingServicePrincipal Properties

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

References a service principal that already exists in the tenant, addressed by its application (client) ID.

<a id="id"></a>

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `BicepValue<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphServicePrincipal.cs#L136)

Gets the service principal's directory object ID.

```csharp
public BicepValue<string> Id { get; }
```

<a id="name"></a>

## Name

- Name: `Name`
- Modifiers: `get; set`
- Returns: `BicepValue<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphServicePrincipal.cs)

Gets or sets the application (client) ID that addresses the service principal.

```csharp
public BicepValue<string> Name { get; set; }
```
