RadiusContainerConstruct
Classsealednet10.0
Represents a
Radius.Compute/containers resource in the Bicep AST. namespace Aspire.Hosting.Radius.Publishing.Constructs;
public sealed class RadiusContainerConstruct : Azure.Provisioning.Primitives.ProvisionableResource{ // ...}ProvisionableResource
8 members
Remarks
Section titled 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 Constructors1
Section titled ConstructorsRadiusContainerConstruct(string, string) Initializes a new
RadiusContainerConstruct with the given Bicep identifier and Radius container resource name. Properties7
Section titled PropertiesApplicationIdget; setBicepValue<string>Reference to the application resource ID.
Connectionsget; setBicepDictionary<ConnectionConstruct> Dictionary of named connections to other resources. Keys are connection names; values contain source resource ID references.
ContainerNameget; setBicepValue<string>The resource name.
Envget; setBicepDictionary<ContainerEnvVarConstruct> 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). EnvironmentIdget; setBicepValue<string>Reference to the environment resource ID.
Imageget; setBicepValue<string>Container image (e.g., "nginx:latest").
Portsget; setBicepDictionary<ContainerPortConstruct> Ports exposed by the container, keyed by port name. Each entry carries a
containerPort and an optional protocol.