AzureBicepResource Methods
Class Methods 3 members
Represents an Azure Bicep resource.
GetBicepTemplateFile(string?, bool) Section titled GetBicepTemplateFile(string?, bool) virtual BicepTemplateFile 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 class AzureBicepResource{ public virtual BicepTemplateFile GetBicepTemplateFile( string? directory = null, bool deleteTemporaryFileOnDispose = true) { // ... }}Parameters
directory string? optional The directory where the bicep file will be written to (if it's a temporary file) deleteTemporaryFileOnDispose bool optional A boolean that determines if the file should be deleted on disposal of the BicepTemplateFile. Returns
BicepTemplateFile A BicepTemplateFile that represents the bicep file. Exceptions
InvalidOperationException Get the bicep template as a string. Does not write to disk.
public class AzureBicepResource{ public virtual string GetBicepTemplateString() { // ... }}WriteToManifest(ManifestPublishingContext) Section titled WriteToManifest(ManifestPublishingContext) virtual Writes the resource to the manifest.
public class AzureBicepResource{ public virtual void WriteToManifest( ManifestPublishingContext context) { // ... }}Parameters
context ManifestPublishingContext The Publishing.ManifestPublishingContext.