# AzureBicepResource Constructors

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [AzureBicepResource](/reference/api/csharp/aspire.hosting.azure/azurebicepresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure Bicep resource.

## AzureBicepResource(string, string?, string?, string?)

- Name: `Constructor(string, string?, string?, string?)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzureBicepResource.cs#L35-L118)

Initializes a new instance of the [AzureBicepResource](/reference/api/csharp/aspire.hosting.azure/azurebicepresource.md) class.

```csharp
public class AzureBicepResource
{
    public AzureBicepResource(
        string name,
        string? templateFile = null,
        string? templateString = null,
        string? templateResourceName = null)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  Name of the resource. This will be the name of the deployment.
- `templateFile` (`string?`) `optional`
  The path to the bicep file.
- `templateString` (`string?`) `optional`
  A bicep snippet.
- `templateResourceName` (`string?`) `optional`
  The name of an embedded resource that represents the bicep file.
