Skip to content
DocsTry Aspire
DocsTry

RadiusContainerConstruct Constructors

ClassConstructors1 member
Represents a Radius.Compute/containers resource in the Bicep AST.
Initializes a new RadiusContainerConstruct with the given Bicep identifier and Radius container resource name.
public sealed class RadiusContainerConstruct
{
public RadiusContainerConstruct(
string bicepIdentifier,
string containerName)
{
// ...
}
}
bicepIdentifierstring The Bicep identifier for this resource. May be sanitized (e.g., hyphens become underscores) so it remains a valid C#/Bicep identifier.
containerNamestring 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). 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.