# AzureKeyVaultResource Properties

- Package: [Aspire.Hosting.Azure.KeyVault](/reference/api/csharp/aspire.hosting.azure.keyvault.md)
- Type: [AzureKeyVaultResource](/reference/api/csharp/aspire.hosting.azure.keyvault/azurekeyvaultresource.md)
- Kind: `Properties`
- Members: `6`

A resource that represents an Azure Key Vault.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.KeyVault/AzureKeyVaultResource.cs#L66-L73)

Gets the connection string template for the manifest for the Azure Key Vault resource.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.KeyVault/AzureKeyVaultResource.cs#L37)

Gets the "id" output reference for the Azure Key Vault resource.

```csharp
public BicepOutputReference Id { get; }
```

## IsEmulator

- Name: `IsEmulator`
- Modifiers: `get`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.KeyVault/AzureKeyVaultResource.cs#L42)

Gets a value indicating whether the Azure Key Vault resource is running in the local emulator.

```csharp
public bool IsEmulator { get; }
```

## NameOutputReference

- Name: `NameOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.KeyVault/AzureKeyVaultResource.cs#L32)

Gets the "name" output reference for the Azure Key Vault resource.

```csharp
public BicepOutputReference NameOutputReference { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.KeyVault/AzureKeyVaultResource.cs#L55-L57)

Gets the endpoint URI expression for the Key Vault resource.

```csharp
public ReferenceExpression UriExpression { get; }
```

## Remarks

In container mode (emulator), resolves to the container's HTTPS endpoint URL. In Azure mode, resolves to the Azure Key Vault URI. Format: `https://{name}.vault.azure.net/`.

## VaultUri

- Name: `VaultUri`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.KeyVault/AzureKeyVaultResource.cs#L27)

Gets the "vaultUri" output reference for the Azure Key Vault resource.

```csharp
public BicepOutputReference VaultUri { get; }
```
