Skip to content
DocsTry Aspire
DocsTry

ContainerPortConstruct

Classsealednet10.0
📦 Aspire.Hosting.Radius v13.5.3-preview.1.26425.3
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
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