ContainerPortConstruct
Classsealednet10.0
Represents a single port entry in a container's
ports block. namespace Aspire.Hosting.Radius.Publishing.Constructs;
public sealed class ContainerPortConstruct : Azure.Provisioning.Primitives.ProvisionableConstruct{ // ...}ProvisionableConstruct
Remarks
Section titled Remarks The Radius container schema models
ports as a map keyed by the port name, where each entry exposes a containerPort (the port the application listens on inside the container) and an optional protocol ( TCP or UDP). See: https://github.com/radius-project/radius/blob/main/eng/design-notes/extensibility/2025-08-container-resource-type.md