AzureConstructResource.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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for