Azure Container Instances · JSON Structure

Azure Container Instances Container Port Structure

The port exposed on the container instance.

Type: object Properties: 2 Required: 1
AzureCloudContainer InstancesContainersMicrosoftServerless

ContainerPort is a JSON Structure definition published by Azure Container Instances, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

port protocol

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-container-instances/refs/heads/main/json-structure/azure-container-instances-container-port-structure.json",
  "description": "The port exposed on the container instance.",
  "type": "object",
  "properties": {
    "port": {
      "description": "The port number exposed within the container group.",
      "format": "int32",
      "type": "integer"
    },
    "protocol": {
      "description": "The protocol associated with the port.",
      "enum": [
        "TCP",
        "UDP"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "ContainerNetworkProtocol"
      }
    }
  },
  "required": [
    "port"
  ],
  "name": "ContainerPort"
}