Skip to content
DocsTry Aspire
DocsTry

AzureBicepResource Constructors

ClassConstructors1 member
Represents an Azure Bicep resource.
Constructor(string, string?, string?, string?)Section titled Constructor(string, string?, string?, string?)
Initializes a new instance of the AzureBicepResource class.
public class AzureBicepResource
{
public AzureBicepResource(
string name,
string? templateFile = null,
string? templateString = null,
string? templateResourceName = null)
{
// ...
}
}
namestringName of the resource. This will be the name of the deployment.
templateFilestring?optionalThe path to the bicep file.
templateStringstring?optionalA bicep snippet.
templateResourceNamestring?optionalThe name of an embedded resource that represents the bicep file.