# BicepOutputReference

- 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`, `IEquatable<BicepOutputReference>`

A reference to an output from a bicep template.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class BicepOutputReference
    : Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences,
      System.IEquatable<Aspire.Hosting.Azure.BicepOutputReference>
{
    // ...
}
```

## ATS metadata

### ATS export

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

## Constructors

- [BicepOutputReference(string, AzureBicepResource)](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference/constructors.md#constructor-string-azurebicepresource) -- A reference to an output from a bicep template.

## Properties

- [Name](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference/properties.md#name) : `string` `get` -- Name of the output.
- [Resource](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference/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/bicepoutputreference/properties.md#value) : `string?` `get` -- The value of the output.
- [ValueExpression](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference/properties.md#valueexpression) : `string` `get` -- The expression used in the manifest to reference the value of the output.

## Methods

- [GetHashCode](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [GetValueAsync(CancellationToken)](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference/methods.md#getvalueasync-cancellationtoken) : `ValueTask<string?>` -- The value of the output.
