# MicrosoftGraphExistingServicePrincipal Constructors

- 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: `Constructors`
- Members: `1`

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

<a id="constructor"></a>
<a id="constructor-string"></a>

## MicrosoftGraphExistingServicePrincipal(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphServicePrincipal.cs#L128-L131)

Creates a reference to an existing service principal.

```csharp
public sealed class MicrosoftGraphExistingServicePrincipal
{
    public MicrosoftGraphExistingServicePrincipal(
        string bicepIdentifier)
    {
        // ...
    }
}
```

## Parameters

- `bicepIdentifier` (`string`)
  The resource's identifier in the Bicep module.
