# MicrosoftGraphKeyCredential Properties

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

Models a public certificate credential declared on a Microsoft Graph application.

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

## CustomKeyIdentifier

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

Gets or sets the custom identifier for the key, encoded as base64.

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

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

## DisplayName

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

Gets or sets the credential's display name.

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

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

## EndDateTime

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

Gets or sets the credential's expiration date and time in ISO 8601 format.

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

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

## Key

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

Gets or sets the base64-encoded public certificate. Do not supply a private key.

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

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

## KeyId

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

Gets or sets the credential's key ID.

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

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

## StartDateTime

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

Gets or sets when the credential becomes valid, in ISO 8601 format.

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

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

## Type

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

Gets or sets the key type, such as `AsymmetricX509Cert`.

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

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

## Usage

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

Gets or sets the key usage, such as `Verify`.

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