# AzureBicepResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzureBicepResource.cs)
- Inherits: `Resource`
- Implements: [IAzureResource](/reference/api/csharp/aspire.hosting.azure/iazureresource.md), `IResource`, `IResourceWithParameters`

Represents an Azure Bicep resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureBicepResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IAzureResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithParameters
{
    // ...
}
```

## Constructors

- [AzureBicepResource(string, string?, string?, string?)](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/constructors.md#constructor-string-string-string-string) -- Initializes a new instance of the [AzureBicepResource](/reference/api/csharp/aspire.hosting.azure/azurebicepresource.md) class.

## Properties

- [Outputs](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/properties.md#outputs) : `Dictionary<string, object?>` `get` -- Outputs that will be generated by the bicep template.
- [Parameters](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/properties.md#parameters) : `Dictionary<string, object?>` `get` -- Parameters that will be passed into the bicep template.
- [ProvisioningTaskCompletionSource](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/properties.md#provisioningtaskcompletionsource) : `TaskCompletionSource?` `get; set` -- The task completion source for the provisioning operation.
- [References](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/properties.md#references) : `HashSet<object>` `get` -- References to other objects that may contain Azure resource references.
- [Scope](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/properties.md#scope) : [AzureBicepResourceScope?](/reference/api/csharp/aspire.hosting.azure/azurebicepresourcescope.md) `get; set` -- The scope of the resource that will be configured in the main Bicep file.
- [SecretOutputs](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/properties.md#secretoutputs) : `Dictionary<string, string?>` `get` -- Secret outputs that will be generated by the bicep template.

## Methods

- [GetBicepTemplateFile(string?, bool)](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/methods.md#getbiceptemplatefile-string-bool) : [BicepTemplateFile](/reference/api/csharp/aspire.hosting.azure/biceptemplatefile.md) `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.
- [GetBicepTemplateString](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/methods.md#getbiceptemplatestring) : `string` `virtual` -- Get the bicep template as a string. Does not write to disk.
- [WriteToManifest(ManifestPublishingContext)](/reference/api/csharp/aspire.hosting.azure/azurebicepresource/methods.md#writetomanifest-manifestpublishingcontext) `virtual` -- Writes the resource to the manifest.

## Nested Types

- [KnownParameters](/reference/api/csharp/aspire.hosting.azure/knownparameters.md) -- Known parameters that will be filled in automatically by the host environment.
