# GetOutput

- Module: [Aspire.Hosting.Azure](/reference/api/go/aspire.hosting.azure.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`AzureBicepResource`](/reference/api/go/aspire.hosting.azure/azurebicepresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Gets a reference to an output from a bicep template.

## Definition

```go
func (AzureBicepResource) GetOutput(name string) BicepOutputReference
```

## Parameters

- `name` (`string`) -- Name of the output.

## Returns

[`BicepOutputReference`](/reference/api/go/aspire.hosting.azure/bicepoutputreference.md) -- A `BicepOutputReference` that represents the output.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`AzureBicepResource`](/reference/api/go/aspire.hosting.azure/azurebicepresource.md)
- [`AzureProvisioningResource`](/reference/api/go/aspire.hosting.azure/azureprovisioningresource.md)
- [`AzureUserAssignedIdentityResource`](/reference/api/go/aspire.hosting.azure/azureuserassignedidentityresource.md)
