# IAzureKeyVaultSecretReference

- Kind: `interface`
- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/IAzureKeyVaultSecretReference.cs)
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IValueProvider`, `IValueWithReferences`

Represents a reference to a secret in an Azure Key Vault resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public interface IAzureKeyVaultSecretReference
    : Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Azure/IAzureKeyVaultSecretReference`

## Properties

- [Resource](/reference/api/csharp/aspire.hosting.azure/iazurekeyvaultsecretreference/properties.md#resource) : [IAzureKeyVaultResource](/reference/api/csharp/aspire.hosting.azure/iazurekeyvaultresource.md) `abstract` `get` -- Gets the Azure Key Vault resource.
- [SecretName](/reference/api/csharp/aspire.hosting.azure/iazurekeyvaultsecretreference/properties.md#secretname) : `string` `abstract` `get` -- Gets the name of the secret.
- [SecretOwner](/reference/api/csharp/aspire.hosting.azure/iazurekeyvaultsecretreference/properties.md#secretowner) : `IResource?` `virtual` `get; set` -- Gets or sets the resource that writes this secret to the Key Vault.
