# RadiusContainerConstruct Constructors

- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Type: [RadiusContainerConstruct](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct.md)
- Kind: `Constructors`
- Members: `1`

Represents a `Radius.Compute/containers` resource in the Bicep AST.

<a id="constructor"></a>
<a id="constructor-string-string"></a>

## RadiusContainerConstruct(string, string)

- Name: `Constructor(string, string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting.Radius/Publishing/Constructs/RadiusContainerConstruct.cs#L121-L125)

Initializes a new [RadiusContainerConstruct](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct.md) with the given Bicep identifier and Radius container resource name.

```csharp
public sealed class RadiusContainerConstruct
{
    public RadiusContainerConstruct(
        string bicepIdentifier,
        string containerName)
    {
        // ...
    }
}
```

## Parameters

- `bicepIdentifier` (`string`)
  The Bicep identifier for this resource. May be sanitized (e.g., hyphens become underscores) so it remains a valid C#/Bicep identifier.
- `containerName` (`string`)
  The Radius container resource name as it should appear in the deployed manifest. This value is used as the map key under `properties.containers`. The Radius v2 schema does not require this map key to equal the top-level `name:`, but Aspire keys both by the resource name and requires them to match so the service discovery it derives from that name resolves to the Service the recipe creates (see [RadiusContainerConstruct.ContainerMapKey](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md)). It must be the unsanitized resource name (hyphens preserved); using `BicepIdentifier` here would emit a key that does not match the `name` when the resource name contains characters that get sanitized.
