Share via


AzureProvisioningResource.GetBicepTemplateFile(String, Boolean) Method

Definition

Gets the path to the bicep file. If the template is a string or embedded resource, it will be written to a temporary file.

public override Aspire.Hosting.Azure.BicepTemplateFile GetBicepTemplateFile (string? directory = default, bool deleteTemporaryFileOnDispose = true);
override this.GetBicepTemplateFile : string * bool -> Aspire.Hosting.Azure.BicepTemplateFile
Public Overrides Function GetBicepTemplateFile (Optional directory As String = Nothing, Optional deleteTemporaryFileOnDispose As Boolean = true) As BicepTemplateFile

Parameters

directory
String

The directory where the bicep file will be written to (if it's a temporary file)

deleteTemporaryFileOnDispose
Boolean

A boolean that determines if the file should be deleted on disposal of the BicepTemplateFile.

Returns

A BicepTemplateFile that represents the bicep file.

Applies to