Skip to content
Docs Try Aspire

AzureBicepResource Constructors

Class Constructors 1 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)
{
// ...
}
}
name string Name of the resource. This will be the name of the deployment.
templateFile string? optional The path to the bicep file.
templateString string? optional A bicep snippet.
templateResourceName string? optional The name of an embedded resource that represents the bicep file.