AzureProvisioningResource.GetBicepTemplateFile(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.