# AddBicepTemplate

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

Adds an Azure Bicep resource to the application model.

## Definition

```go
func (DistributedApplicationBuilder) AddBicepTemplate(
    name string,
    bicepFile string,
) AzureBicepResource
```

## Parameters

- `name` (`string`) -- The name of the resource. This name will be used as the deployment name.
- `bicepFile` (`string`) -- The path to the bicep file on disk. This path is relative to the apphost's project directory.

## Returns

[`AzureBicepResource`](/reference/api/go/aspire.hosting.azure/azurebicepresource.md) -- The resource builder.

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

## Applies to

- `DistributedApplicationBuilder`
