Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddBicepTemplate

Method
📦 Aspire.Hosting.Azure v17.0.0
func (DistributedApplicationBuilder) AddBicepTemplate(
name string,
bicepFile string,
) AzureBicepResource

Signature

methodAddBicepTemplatebuilder
Adds an Azure Bicep resource to the application model.
AddBicepTemplate(
name string,
bicepFile string,
) AzureBicepResource
namestringThe name of the resource. This name will be used as the deployment name.
bicepFilestringThe path to the bicep file on disk. This path is relative to the apphost's project directory.
AzureBicepResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder