{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-container-instances/json-schema/azure-container-instances-container-group-profile-schema.json",
  "title": "ContainerGroupProfile",
  "description": "A container group profile object",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-container-instances-subscriptions-api-openapi.yml#/components/schemas/ContainerGroupProfile",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ContainerGroupProfileProperties",
      "description": "The container group profile properties",
      "x-ms-client-flatten": true
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "location": {
      "type": "string",
      "description": "The geo-location where the resource lives"
    },
    "zones": {
      "type": "array",
      "description": "The availability zones.",
      "items": {
        "type": "string"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "AzureFileVolume": {
      "type": "object",
      "description": "The properties of the Azure File volume. Azure File shares are mounted as volumes.",
      "properties": {
        "shareName": {
          "type": "string",
          "description": "The name of the Azure File share to be mounted as a volume."
        },
        "readOnly": {
          "type": "boolean",
          "description": "The flag indicating whether the Azure File shared mounted as a volume is read-only."
        },
        "storageAccountName": {
          "type": "string",
          "description": "The name of the storage account that contains the Azure File share."
        },
        "storageAccountKey": {
          "type": "string",
          "format": "password",
          "description": "The storage account access key used to access the Azure File share.",
          "x-ms-secret": true
        },
        "storageAccountKeyReference": {
          "type": "string",
          "description": "The reference to the storage account access key used to access the Azure File share."
        },
        "userManagedIdentityClientId": {
          "type": "string",
          "description": "The client id of the user-assigned managed identity that has access to the Azure File share."
        }
      },
      "required": [
        "shareName",
        "storageAccountName"
      ]
    },
    "ConfidentialComputeProperties": {
      "type": "object",
      "description": "The properties for confidential container group",
      "properties": {
        "ccePolicy": {
          "type": "string",
          "description": "The base64 encoded confidential compute enforcement policy"
        }
      }
    },
    "ConfigMap": {
      "type": "object",
      "description": "The container config map.",
      "properties": {
        "keyValuePairs": {
          "type": "object",
          "description": "The key value pairs dictionary in the config map.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "Container": {
      "type": "object",
      "description": "A container instance.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The user-provided name of the container instance."
        },
        "properties": {
          "$ref": "#/$defs/ContainerProperties",
          "description": "The properties of the container instance.",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "name",
        "properties"
      ]
    },
    "ContainerExec": {
      "type": "object",
      "description": "The container execution command, for liveness or readiness probe",
      "properties": {
        "command": {
          "type": "array",
          "description": "The commands to execute within the container.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ContainerGroupDiagnostics": {
      "type": "object",
      "description": "Container group diagnostic information.",
      "properties": {
        "logAnalytics": {
          "$ref": "#/$defs/LogAnalytics",
          "description": "Container group log analytics information."
        }
      }
    },
    "ContainerGroupIpAddressType": {
      "type": "string",
      "description": "Specifies if the IP is exposed to the public internet or private VNET.",
      "enum": [
        "Public",
        "Private"
      ],
      "x-ms-enum": {
        "name": "ContainerGroupIpAddressType",
        "modelAsString": true,
        "values": [
          {
            "name": "Public",
            "value": "Public",
            "description": "Public"
          },
          {
            "name": "Private",
            "value": "Private",
            "description": "Private"
          }
        ]
      }
    },
    "ContainerGroupNetworkProtocol": {
      "type": "string",
      "description": "The protocol associated with the port.",
      "enum": [
        "TCP",
        "UDP"
      ],
      "x-ms-enum": {
        "name": "ContainerGroupNetworkProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "TCP",
            "value": "TCP",
            "description": "TCP"
          },
          {
            "name": "UDP",
            "value": "UDP",
            "description": "UDP"
          }
        ]
      }
    },
    "ContainerGroupPriority": {
      "type": "string",
      "description": "The priority of the container group.",
      "enum": [
        "Regular",
        "Spot"
      ],
      "x-ms-enum": {
        "name": "ContainerGroupPriority",
        "modelAsString": true,
        "values": [
          {
            "name": "Regular",
            "value": "Regular",
            "description": "Regular"
          },
          {
            "name": "Spot",
            "value": "Spot",
            "description": "Spot"
          }
        ]
      }
    },
    "ContainerGroupProfileProperties": {
      "type": "object",
      "description": "The container group profile properties",
      "properties": {
        "sku": {
          "$ref": "#/$defs/ContainerGroupSku",
          "description": "The SKU for a container group."
        },
        "encryptionProperties": {
          "$ref": "#/$defs/EncryptionProperties",
          "description": "The encryption properties for a container group."
        },
        "containers": {
          "type": "array",
          "description": "The containers within the container group.",
          "items": {
            "$ref": "#/$defs/Container"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "initContainers": {
          "type": "array",
          "description": "The init containers for a container group.",
          "items": {
            "$ref": "#/$defs/InitContainerDefinition"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "extensions": {
          "type": "array",
          "description": "extensions used by virtual kubelet",
          "items": {
            "$ref": "#/$defs/DeploymentExtensionSpec"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "imageRegistryCredentials": {
          "type": "array",
          "description": "The image registry credentials by which the container group is created from.",
          "items": {
            "$ref": "#/$defs/ImageRegistryCredential"
          },
          "x-ms-identifiers": [
            "username"
          ]
        },
        "restartPolicy": {
          "$ref": "#/$defs/ContainerGroupRestartPolicy",
          "description": "Restart policy for all containers within the container group.\n- `Always` Always restart\n- `OnFailure` Restart on failure\n- `Never` Never restart"
        },
        "shutdownGracePeriod": {
          "type": "string",
          "format": "date-time",
          "description": "Shutdown grace period for containers in a container group."
        },
        "ipAddress": {
          "$ref": "#/$defs/IpAddress",
          "description": "The IP address type of the container group."
        },
        "timeToLive": {
          "type": "string",
          "format": "date-time",
          "description": "Post completion time to live for containers of a CG"
        },
        "osType": {
          "$ref": "#/$defs/OperatingSystemTypes",
          "description": "The operating system type required by the containers in the container group."
        },
        "volumes": {
          "type": "array",
          "description": "The list of volumes that can be mounted by containers in this container group.",
          "items": {
            "$ref": "#/$defs/Volume"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "diagnostics": {
          "$ref": "#/$defs/ContainerGroupDiagnostics",
          "description": "The diagnostic information for a container group."
        },
        "priority": {
          "$ref": "#/$defs/ContainerGroupPriority",
          "description": "The priority of the container group."
        },
        "confidentialComputeProperties": {
          "$ref": "#/$defs/ConfidentialComputeProperties",
          "description": "The properties for confidential container group"
        },
        "securityContext": {
          "$ref": "#/$defs/SecurityContextDefinition",
          "description": "The container security properties."
        },
        "revision": {
          "type": "integer",
          "format": "int32",
          "description": "Container group profile current revision number",
          "readOnly": true
        },
        "registeredRevisions": {
          "type": "array",
          "description": "Registered revisions are calculated at request time based off the records in the table logs.",
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "readOnly": true
        },
        "useKrypton": {
          "type": "boolean",
          "description": "Gets or sets Krypton use property."
        }
      },
      "required": [
        "containers",
        "osType"
      ]
    },
    "ContainerGroupRestartPolicy": {
      "type": "string",
      "description": "Restart policy for all containers within the container group.\n- `Always` Always restart\n- `OnFailure` Restart on failure\n- `Never` Never restart",
      "enum": [
        "Always",
        "OnFailure",
        "Never"
      ],
      "x-ms-enum": {
        "name": "ContainerGroupRestartPolicy",
        "modelAsString": true,
        "values": [
          {
            "name": "Always",
            "value": "Always",
            "description": "Always"
          },
          {
            "name": "OnFailure",
            "value": "OnFailure",
            "description": "OnFailure"
          },
          {
            "name": "Never",
            "value": "Never",
            "description": "Never"
          }
        ]
      }
    },
    "ContainerGroupSku": {
      "type": "string",
      "description": "The container group SKU.",
      "enum": [
        "NotSpecified",
        "Standard",
        "Dedicated",
        "Confidential"
      ],
      "x-ms-enum": {
        "name": "ContainerGroupSku",
        "modelAsString": true,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified",
            "description": "NotSpecified"
          },
          {
            "name": "Standard",
            "value": "Standard",
            "description": "Standard"
          },
          {
            "name": "Dedicated",
            "value": "Dedicated",
            "description": "Dedicated"
          },
          {
            "name": "Confidential",
            "value": "Confidential",
            "description": "Confidential"
          }
        ]
      }
    },
    "ContainerHttpGet": {
      "type": "object",
      "description": "The container Http Get settings, for liveness or readiness probe",
      "properties": {
        "path": {
          "type": "string",
          "description": "The path to probe."
        },
        "port": {
          "type": "integer",
          "format": "int32",
          "description": "The port number to probe."
        },
        "scheme": {
          "$ref": "#/$defs/Scheme",
          "description": "The scheme."
        },
        "httpHeaders": {
          "type": "array",
          "description": "The HTTP headers.",
          "items": {
            "$ref": "#/$defs/HttpHeader"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      },
      "required": [
        "port"
      ]
    },
    "ContainerNetworkProtocol": {
      "type": "string",
      "description": "The protocol associated with the port.",
      "enum": [
        "TCP",
        "UDP"
      ],
      "x-ms-enum": {
        "name": "ContainerNetworkProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "TCP",
            "value": "TCP",
            "description": "TCP"
          },
          {
            "name": "UDP",
            "value": "UDP",
            "description": "UDP"
          }
        ]
      }
    },
    "ContainerPort": {
      "type": "object",
      "description": "The port exposed on the container instance.",
      "properties": {
        "protocol": {
          "$ref": "#/$defs/ContainerNetworkProtocol",
          "description": "The protocol associated with the port."
        },
        "port": {
          "type": "integer",
          "format": "int32",
          "description": "The port number exposed within the container group."
        }
      },
      "required": [
        "port"
      ]
    },
    "ContainerProbe": {
      "type": "object",
      "description": "The container probe, for liveness or readiness",
      "properties": {
        "exec": {
          "$ref": "#/$defs/ContainerExec",
          "description": "The execution command to probe"
        },
        "httpGet": {
          "$ref": "#/$defs/ContainerHttpGet",
          "description": "The Http Get settings to probe"
        },
        "initialDelaySeconds": {
          "type": "integer",
          "format": "int32",
          "description": "The initial delay seconds."
        },
        "periodSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "The period seconds."
        },
        "failureThreshold": {
          "type": "integer",
          "format": "int32",
          "description": "The failure threshold."
        },
        "successThreshold": {
          "type": "integer",
          "format": "int32",
          "description": "The success threshold."
        },
        "timeoutSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "The timeout seconds."
        }
      }
    },
    "ContainerProperties": {
      "type": "object",
      "description": "The container instance properties.",
      "properties": {
        "image": {
          "type": "string",
          "description": "The name of the image used to create the container instance."
        },
        "command": {
          "type": "array",
          "description": "The commands to execute within the container instance in exec form.",
          "items": {
            "type": "string"
          }
        },
        "ports": {
          "type": "array",
          "description": "The exposed ports on the container instance.",
          "items": {
            "$ref": "#/$defs/ContainerPort"
          },
          "x-ms-identifiers": [
            "port"
          ]
        },
        "environmentVariables": {
          "type": "array",
          "description": "The environment variables to set in the container instance.",
          "items": {
            "$ref": "#/$defs/EnvironmentVariable"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "instanceView": {
          "$ref": "#/$defs/ContainerPropertiesInstanceView",
          "description": "The instance view of the container instance. Only valid in response.",
          "readOnly": true
        },
        "resources": {
          "$ref": "#/$defs/ResourceRequirements",
          "description": "The resource requirements of the container instance."
        },
        "volumeMounts": {
          "type": "array",
          "description": "The volume mounts available to the container instance.",
          "items": {
            "$ref": "#/$defs/VolumeMount"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "livenessProbe": {
          "$ref": "#/$defs/ContainerProbe",
          "description": "The liveness probe."
        },
        "readinessProbe": {
          "$ref": "#/$defs/ContainerProbe",
          "description": "The readiness probe."
        },
        "securityContext": {
          "$ref": "#/$defs/SecurityContextDefinition",
          "description": "The container security properties."
        },
        "configMap": {
          "$ref": "#/$defs/ConfigMap",
          "description": "The config map."
        }
      }
    },
    "ContainerPropertiesInstanceView": {
      "type": "object",
      "description": "The instance view of the container instance. Only valid in response.",
      "properties": {
        "restartCount": {
          "type": "integer",
          "format": "int32",
          "description": "The number of times that the container instance has been restarted.",
          "readOnly": true
        },
        "currentState": {
          "$ref": "#/$defs/ContainerState",
          "description": "Current container instance state.",
          "readOnly": true
        },
        "previousState": {
          "$ref": "#/$defs/ContainerState",
          "description": "Previous container instance state.",
          "readOnly": true
        },
        "events": {
          "type": "array",
          "description": "The events of the container instance.",
          "items": {
            "$ref": "#/$defs/Event"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name",
            "type"
          ]
        }
      }
    },
    "ContainerState": {
      "type": "object",
      "description": "The container instance state.",
      "properties": {
        "state": {
          "type": "string",
          "description": "The state of the container instance.",
          "readOnly": true
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date-time when the container instance state started.",
          "readOnly": true
        },
        "exitCode": {
          "type": "integer",
          "format": "int32",
          "description": "The container instance exit codes correspond to those from the `docker run` command.",
          "readOnly": true
        },
        "finishTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date-time when the container instance state finished.",
          "readOnly": true
        },
        "detailStatus": {
          "type": "string",
          "description": "The human-readable status of the container instance state.",
          "readOnly": true
        }
      }
    },
    "DeploymentExtensionSpec": {
      "type": "object",
      "description": "Extension sidecars to be added to the deployment.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the extension."
        },
        "properties": {
          "$ref": "#/$defs/DeploymentExtensionSpecProperties",
          "description": "Extension specific properties",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "name"
      ]
    },
    "DeploymentExtensionSpecProperties": {
      "type": "object",
      "description": "Extension specific properties",
      "properties": {
        "extensionType": {
          "type": "string",
          "description": "Type of extension to be added."
        },
        "version": {
          "type": "string",
          "description": "Version of the extension being used."
        },
        "settings": {
          "description": "Settings for the extension."
        },
        "protectedSettings": {
          "description": "Protected settings for the extension."
        }
      },
      "required": [
        "extensionType",
        "version"
      ]
    },
    "EncryptionProperties": {
      "type": "object",
      "description": "The container group encryption properties.",
      "properties": {
        "vaultBaseUrl": {
          "type": "string",
          "description": "The keyvault base url."
        },
        "keyName": {
          "type": "string",
          "description": "The encryption key name."
        },
        "keyVersion": {
          "type": "string",
          "description": "The encryption key version."
        },
        "identity": {
          "type": "string",
          "description": "The keyvault managed identity."
        }
      },
      "required": [
        "vaultBaseUrl",
        "keyName",
        "keyVersion"
      ]
    },
    "EnvironmentVariable": {
      "type": "object",
      "description": "The environment variable to set within the container instance.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the environment variable."
        },
        "value": {
          "type": "string",
          "description": "The value of the environment variable."
        },
        "secureValue": {
          "type": "string",
          "format": "password",
          "description": "The value of the secure environment variable.",
          "x-ms-secret": true
        },
        "secureValueReference": {
          "type": "string",
          "description": "The reference of the secure environment variable."
        }
      },
      "required": [
        "name"
      ]
    },
    "Event": {
      "type": "object",
      "description": "A container group or container instance event.",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32",
          "description": "The count of the event.",
          "readOnly": true
        },
        "firstTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The date-time of the earliest logged event.",
          "readOnly": true
        },
        "lastTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The date-time of the latest logged event.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The event name.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "The event message.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The event type.",
          "readOnly": true
        }
      }
    },
    "GitRepoVolume": {
      "type": "object",
      "description": "Represents a volume that is populated with the contents of a git repository",
      "properties": {
        "directory": {
          "type": "string",
          "description": "Target directory name. Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the git repository.  Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name."
        },
        "repository": {
          "type": "string",
          "description": "Repository URL"
        },
        "revision": {
          "type": "string",
          "description": "Commit hash for the specified revision."
        }
      },
      "required": [
        "repository"
      ]
    },
    "GpuResource": {
      "type": "object",
      "description": "The GPU resource.",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32",
          "description": "The count of the GPU resource."
        },
        "sku": {
          "$ref": "#/$defs/GpuSku",
          "description": "The SKU of the GPU resource."
        }
      },
      "required": [
        "count",
        "sku"
      ]
    },
    "GpuSku": {
      "type": "string",
      "description": "The SKU of the GPU resource.",
      "enum": [
        "K80",
        "P100",
        "V100"
      ],
      "x-ms-enum": {
        "name": "GpuSku",
        "modelAsString": true,
        "values": [
          {
            "name": "K80",
            "value": "K80",
            "description": "K80"
          },
          {
            "name": "P100",
            "value": "P100",
            "description": "P100"
          },
          {
            "name": "V100",
            "value": "V100",
            "description": "V100"
          }
        ]
      }
    },
    "HttpHeader": {
      "type": "object",
      "description": "The HTTP header.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The header name."
        },
        "value": {
          "type": "string",
          "description": "The header value."
        }
      }
    },
    "ImageRegistryCredential": {
      "type": "object",
      "description": "Image registry credential.",
      "properties": {
        "server": {
          "type": "string",
          "description": "The Docker image registry server without a protocol such as \"http\" and \"https\"."
        },
        "username": {
          "type": "string",
          "description": "The username for the private registry."
        },
        "password": {
          "type": "string",
          "format": "password",
          "description": "The password for the private registry.",
          "x-ms-secret": true
        },
        "passwordReference": {
          "type": "string",
          "description": "The reference for the private registry password."
        },
        "identity": {
          "type": "string",
          "description": "The identity for the private registry."
        },
        "identityUrl": {
          "type": "string",
          "description": "The identity URL for the private registry."
        }
      },
      "required": [
        "server"
      ]
    },
    "InitContainerDefinition": {
      "type": "object",
      "description": "The init container definition.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name for the init container."
        },
        "properties": {
          "$ref": "#/$defs/InitContainerPropertiesDefinition",
          "description": "The properties for the init container.",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "name",
        "properties"
      ]
    },
    "InitContainerPropertiesDefinition": {
      "type": "object",
      "description": "The init container definition properties.",
      "properties": {
        "image": {
          "type": "string",
          "description": "The image of the init container."
        },
        "command": {
          "type": "array",
          "description": "The command to execute within the init container in exec form.",
          "items": {
            "type": "string"
          }
        },
        "environmentVariables": {
          "type": "array",
          "description": "The environment variables to set in the init container.",
          "items": {
            "$ref": "#/$defs/EnvironmentVariable"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "instanceView": {
          "$ref": "#/$defs/InitContainerPropertiesDefinitionInstanceView",
          "description": "The instance view of the init container. Only valid in response.",
          "readOnly": true
        },
        "volumeMounts": {
          "type": "array",
          "description": "The volume mounts available to the init container.",
          "items": {
            "$ref": "#/$defs/VolumeMount"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "securityContext": {
          "$ref": "#/$defs/SecurityContextDefinition",
          "description": "The container security properties."
        }
      }
    },
    "InitContainerPropertiesDefinitionInstanceView": {
      "type": "object",
      "description": "The instance view of the init container. Only valid in response.",
      "properties": {
        "restartCount": {
          "type": "integer",
          "format": "int32",
          "description": "The number of times that the init container has been restarted.",
          "readOnly": true
        },
        "currentState": {
          "$ref": "#/$defs/ContainerState",
          "description": "The current state of the init container.",
          "readOnly": true
        },
        "previousState": {
          "$ref": "#/$defs/ContainerState",
          "description": "The previous state of the init container.",
          "readOnly": true
        },
        "events": {
          "type": "array",
          "description": "The events of the init container.",
          "items": {
            "$ref": "#/$defs/Event"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name",
            "type"
          ]
        }
      }
    },
    "IpAddress": {
      "type": "object",
      "description": "IP address for the container group.",
      "properties": {
        "ports": {
          "type": "array",
          "description": "The list of ports exposed on the container group.",
          "items": {
            "$ref": "#/$defs/Port"
          },
          "x-ms-identifiers": [
            "port"
          ]
        },
        "type": {
          "$ref": "#/$defs/ContainerGroupIpAddressType",
          "description": "Specifies if the IP is exposed to the public internet or private VNET."
        },
        "ip": {
          "type": "string",
          "description": "The IP exposed to the public internet."
        },
        "dnsNameLabel": {
          "type": "string",
          "description": "The Dns name label for the IP."
        },
        "autoGeneratedDomainNameLabelScope": {
          "type": "string",
          "description": "The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.",
          "default": "Unsecure",
          "enum": [
            "Unsecure",
            "TenantReuse",
            "SubscriptionReuse",
            "ResourceGroupReuse",
            "Noreuse"
          ],
          "x-ms-enum": {
            "name": "DnsNameLabelReusePolicy",
            "modelAsString": true,
            "values": [
              {
                "name": "Unsecure",
                "value": "Unsecure",
                "description": "Unsecure"
              },
              {
                "name": "TenantReuse",
                "value": "TenantReuse",
                "description": "TenantReuse"
              },
              {
                "name": "SubscriptionReuse",
                "value": "SubscriptionReuse",
                "description": "SubscriptionReuse"
              },
              {
                "name": "ResourceGroupReuse",
                "value": "ResourceGroupReuse",
                "description": "ResourceGroupReuse"
              },
              {
                "name": "Noreuse",
                "value": "Noreuse",
                "description": "Noreuse"
              }
            ]
          }
        },
        "fqdn": {
          "type": "string",
          "description": "The FQDN for the IP.",
          "readOnly": true
        }
      },
      "required": [
        "ports",
        "type"
      ]
    },
    "LogAnalytics": {
      "type": "object",
      "description": "Container group log analytics information.",
      "properties": {
        "workspaceId": {
          "type": "string",
          "description": "The workspace id for log analytics"
        },
        "workspaceKey": {
          "type": "string",
          "format": "password",
          "description": "The workspace key for log analytics",
          "x-ms-secret": true
        },
        "logType": {
          "$ref": "#/$defs/LogAnalyticsLogType",
          "description": "The log type to be used."
        },
        "metadata": {
          "type": "object",
          "description": "Metadata for log analytics.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "workspaceResourceId": {
          "type": "string",
          "format": "password",
          "description": "The workspace resource id for log analytics",
          "x-ms-secret": true
        }
      },
      "required": [
        "workspaceId",
        "workspaceKey"
      ]
    },
    "LogAnalyticsLogType": {
      "type": "string",
      "description": "The log type to be used.",
      "enum": [
        "ContainerInsights",
        "ContainerInstanceLogs"
      ],
      "x-ms-enum": {
        "name": "LogAnalyticsLogType",
        "modelAsString": true,
        "values": [
          {
            "name": "ContainerInsights",
            "value": "ContainerInsights",
            "description": "ContainerInsights"
          },
          {
            "name": "ContainerInstanceLogs",
            "value": "ContainerInstanceLogs",
            "description": "ContainerInstanceLogs"
          }
        ]
      }
    },
    "OperatingSystemTypes": {
      "type": "string",
      "description": "The operating system type required by the containers in the container group.",
      "enum": [
        "Windows",
        "Linux"
      ],
      "x-ms-enum": {
        "name": "OperatingSystemTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Windows",
            "value": "Windows",
            "description": "Windows"
          },
          {
            "name": "Linux",
            "value": "Linux",
            "description": "Linux"
          }
        ]
      }
    },
    "Port": {
      "type": "object",
      "description": "The port exposed on the container group.",
      "properties": {
        "protocol": {
          "$ref": "#/$defs/ContainerGroupNetworkProtocol",
          "description": "The protocol associated with the port."
        },
        "port": {
          "type": "integer",
          "format": "int32",
          "description": "The port number."
        }
      },
      "required": [
        "port"
      ]
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ResourceLimits": {
      "type": "object",
      "description": "The resource limits.",
      "properties": {
        "memoryInGB": {
          "type": "number",
          "format": "double",
          "description": "The memory limit in GB of this container instance."
        },
        "cpu": {
          "type": "number",
          "format": "double",
          "description": "The CPU limit of this container instance."
        },
        "gpu": {
          "$ref": "#/$defs/GpuResource",
          "description": "The GPU limit of this container instance."
        }
      }
    },
    "ResourceRequests": {
      "type": "object",
      "description": "The resource requests.",
      "properties": {
        "memoryInGB": {
          "type": "number",
          "format": "double",
          "description": "The memory request in GB of this container instance."
        },
        "cpu": {
          "type": "number",
          "format": "double",
          "description": "The CPU request of this container instance."
        },
        "gpu": {
          "$ref": "#/$defs/GpuResource",
          "description": "The GPU request of this container instance."
        }
      },
      "required": [
        "memoryInGB",
        "cpu"
      ]
    },
    "ResourceRequirements": {
      "type": "object",
      "description": "The resource requirements.",
      "properties": {
        "requests": {
          "$ref": "#/$defs/ResourceRequests",
          "description": "The resource requests of this container instance."
        },
        "limits": {
          "$ref": "#/$defs/ResourceLimits",
          "description": "The resource limits of this container instance."
        }
      },
      "required": [
        "requests"
      ]
    },
    "Scheme": {
      "type": "string",
      "description": "The scheme.",
      "enum": [
        "http",
        "https"
      ],
      "x-ms-enum": {
        "name": "Scheme",
        "modelAsString": true,
        "values": [
          {
            "name": "http",
            "value": "http",
            "description": "http"
          },
          {
            "name": "https",
            "value": "https",
            "description": "https"
          }
        ]
      }
    },
    "SecurityContextCapabilitiesDefinition": {
      "type": "object",
      "description": "The capabilities to add or drop from a container.",
      "properties": {
        "add": {
          "type": "array",
          "description": "The capabilities to add to the container.",
          "items": {
            "type": "string"
          }
        },
        "drop": {
          "type": "array",
          "description": "The capabilities to drop from the container.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "SecurityContextDefinition": {
      "type": "object",
      "description": "The security context for the container.",
      "properties": {
        "privileged": {
          "type": "boolean",
          "description": "The flag to determine if the container permissions is elevated to Privileged."
        },
        "allowPrivilegeEscalation": {
          "type": "boolean",
          "description": "A boolean value indicating whether the init process can elevate its privileges"
        },
        "capabilities": {
          "$ref": "#/$defs/SecurityContextCapabilitiesDefinition",
          "description": "The capabilities to add or drop from a container."
        },
        "runAsGroup": {
          "type": "integer",
          "format": "int32",
          "description": "Sets the User GID for the container."
        },
        "runAsUser": {
          "type": "integer",
          "format": "int32",
          "description": "Sets the User UID for the container."
        },
        "seccompProfile": {
          "type": "string",
          "description": "a base64 encoded string containing the contents of the JSON in the seccomp profile"
        }
      }
    },
    "Volume": {
      "type": "object",
      "description": "The properties of the volume.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the volume."
        },
        "azureFile": {
          "$ref": "#/$defs/AzureFileVolume",
          "description": "The Azure File volume."
        },
        "emptyDir": {
          "description": "The empty directory volume."
        },
        "secret": {
          "type": "object",
          "description": "Defines files for a secret volume. Dictionary keys are file names and values are Base64-encoded secret data used as file contents. The values are sensitive, and the service does not return the contents of this property in GET responses.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "secretReference": {
          "type": "object",
          "description": "Defines files for a secret reference volume. Dictionary keys are file names and values identify entries in the container group's secretReferences collection. This property contains reference names rather than secret values.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "gitRepo": {
          "$ref": "#/$defs/GitRepoVolume",
          "description": "The git repo volume."
        }
      },
      "required": [
        "name"
      ]
    },
    "VolumeMount": {
      "type": "object",
      "description": "The properties of the volume mount.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the volume mount."
        },
        "mountPath": {
          "type": "string",
          "description": "The path within the container where the volume should be mounted. Must not contain colon (:)."
        },
        "readOnly": {
          "type": "boolean",
          "description": "The flag indicating whether the volume mount is read-only."
        }
      },
      "required": [
        "name",
        "mountPath"
      ]
    }
  }
}