Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddBicepTemplateString

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

Signature

methodAddBicepTemplateStringbuilder
Adds an Azure Bicep resource to the application model.
AddBicepTemplateString(
name string,
bicepContent string,
) AzureBicepResource
namestringThe name of the resource. This name will be used as the deployment name.
bicepContentstringA string that represents a snippet of bicep.
AzureBicepResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder