ContainerEnvVarConstruct
Classsealednet10.0
Represents a single environment-variable entry in a container's
env block. namespace Aspire.Hosting.Radius.Publishing.Constructs;
public sealed class ContainerEnvVarConstruct : Azure.Provisioning.Primitives.ProvisionableConstruct{ // ...}ProvisionableConstruct
Remarks
Section titled Remarks The Radius container schema models
env as a map keyed by the variable name, where each entry is an object carrying a value (or a valueFrom source). This construct emits the value form. A secret-bound value is assigned a Bicep param reference (to an @secure() parameter) so the literal secret never appears in the published artifact. See: https://github.com/radius-project/radius/blob/main/eng/design-notes/extensibility/2025-08-container-resource-type.md