# BicepSecretOutputReference

- Kind: `class`
- 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/AzureBicepResource.cs)
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IValueProvider`, `IValueWithReferences`

A reference to a KeyVault secret from a bicep template.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class BicepSecretOutputReference
    : Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [BicepSecretOutputReference(string, AzureBicepResource)](/reference/api/csharp/aspire.hosting.azure/bicepsecretoutputreference/constructors.md#constructor-string-azurebicepresource) -- A reference to a KeyVault secret from a bicep template.

## Properties

- [Name](/reference/api/csharp/aspire.hosting.azure/bicepsecretoutputreference/properties.md#name) : `string` `get` -- Name of the KeyVault secret.
- [Resource](/reference/api/csharp/aspire.hosting.azure/bicepsecretoutputreference/properties.md#resource) : [AzureBicepResource](/reference/api/csharp/aspire.hosting.azure/azurebicepresource.md) `get` -- The instance of the bicep resource.
- [Value](/reference/api/csharp/aspire.hosting.azure/bicepsecretoutputreference/properties.md#value) : `string?` `get` -- The value of the output.
- [ValueExpression](/reference/api/csharp/aspire.hosting.azure/bicepsecretoutputreference/properties.md#valueexpression) : `string` `get` -- The expression used in the manifest to reference the value of the secret output.

## Methods

- [GetValueAsync(CancellationToken)](/reference/api/csharp/aspire.hosting.azure/bicepsecretoutputreference/methods.md#getvalueasync-cancellationtoken) : `ValueTask<string?>` -- The value of the output.
