# MicrosoftGraphServicePrincipal Constructors

- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Type: [MicrosoftGraphServicePrincipal](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphserviceprincipal.md)
- Kind: `Constructors`
- Members: `1`

Models the service principal created for an Entra application registration.

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

## MicrosoftGraphServicePrincipal(string)

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

Models the service principal created for an Entra application registration.

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

## Parameters

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

## Remarks

See [https://learn.microsoft.com/graph/templates/bicep/reference/serviceprincipals](https://learn.microsoft.com/graph/templates/bicep/reference/serviceprincipals).
