# BicepSecretOutputReference Constructors

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

A reference to a KeyVault secret from a bicep template.

## BicepSecretOutputReference(string, AzureBicepResource)

- Name: `Constructor(string, AzureBicepResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzureBicepResource.cs#L576-L586)

A reference to a KeyVault secret from a bicep template.

```csharp
public sealed class BicepSecretOutputReference
{
    public BicepSecretOutputReference(
        string name,
        AzureBicepResource resource)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the KeyVault secret.
- `resource` ([AzureBicepResource](/reference/api/csharp/aspire.hosting.azure/azurebicepresource.md))
  The [AzureBicepResource](/reference/api/csharp/aspire.hosting.azure/azurebicepresource.md).
