# RadiusContainerConstruct

- Kind: `class`
- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Version: `13.5.3-preview.1.26425.3`
- Namespace: `Aspire.Hosting.Radius.Publishing.Constructs`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting.Radius/Publishing/Constructs/RadiusContainerConstruct.cs)
- Inherits: `ProvisionableResource`

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

## Definition

```csharp
namespace Aspire.Hosting.Radius.Publishing.Constructs;

public sealed class RadiusContainerConstruct
    : Azure.Provisioning.Primitives.ProvisionableResource
{
    // ...
}
```

## Remarks

Aligned with the Radius container v2 schema ( `Radius.Compute/containers@2025-08-01-preview`). The `imagePullPolicy` property has been removed from the v2 schema. See: https://github.com/radius-project/radius/blob/main/eng/design-notes/extensibility/2025-08-container-resource-type.md

## Constructors

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

## Properties

- [ApplicationId](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md#applicationid) : `BicepValue<string>` `get; set` -- Reference to the application resource ID.
- [Connections](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md#connections) : `BicepDictionary<ConnectionConstruct>` `get; set` -- Dictionary of named connections to other resources. Keys are connection names; values contain source resource ID references.
- [ContainerName](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md#containername) : `BicepValue<string>` `get; set` -- The resource name.
- [Env](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md#env) : `BicepDictionary<ContainerEnvVarConstruct>` `get; set` -- Environment variables for the container, keyed by variable name. Each entry carries a `value` (a literal or a reference to a Bicep parameter for secret values).
- [EnvironmentId](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md#environmentid) : `BicepValue<string>` `get; set` -- Reference to the environment resource ID.
- [Image](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md#image) : `BicepValue<string>` `get; set` -- Container image (e.g., "nginx:latest").
- [Ports](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct/properties.md#ports) : `BicepDictionary<ContainerPortConstruct>` `get; set` -- Ports exposed by the container, keyed by port name. Each entry carries a `containerPort` and an optional `protocol`.
