addBicepTemplate

Method
📦 Aspire.Hosting.Azure v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
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

Applies to

This method applies to the following types: