AzureBicepResource
Class net8.0
Represents an Azure Bicep resource.
namespace Aspire.Hosting.Azure;
public class AzureBicepResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IAzureResource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithParameters{ // ...} 10 members
Constructors1
Section titled ConstructorsAzureBicepResource(string, string?, string?, string?) Initializes a new instance of the
AzureBicepResource class. Properties6
Section titled PropertiesOutputsgetDictionary<string, object?> Outputs that will be generated by the bicep template.
ParametersgetDictionary<string, object?> Parameters that will be passed into the bicep template.
ProvisioningTaskCompletionSourceget; setTaskCompletionSource? The task completion source for the provisioning operation.
ReferencesgetHashSet<object> References to other objects that may contain Azure resource references.
Scopeget; set The scope of the resource that will be configured in the main Bicep file.
SecretOutputsgetDictionary<string, string?> Secret outputs that will be generated by the bicep template.
Methods3
Section titled MethodsGetBicepTemplateFile(string?, bool)virtual Gets the path to the bicep file. If the template is a string or embedded resource, it will be written to a temporary file.
GetBicepTemplateStringvirtualstring Get the bicep template as a string. Does not write to disk.
WriteToManifest(ManifestPublishingContext)virtual Writes the resource to the manifest.