{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-machine-schema.json",
  "title": "Machine",
  "description": "A machine. Contains details about the underlying virtual machine. A machine may be visible here but not in kubectl get nodes; if so it may be because the machine has not been registered with the Kubernetes API Server yet.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-kubernetes-service-machines-api-openapi.yml#/components/schemas/Machine",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/MachineProperties",
      "description": "The properties of the machine"
    },
    "zones": {
      "type": "array",
      "description": "The Availability zone in which machine is located.",
      "items": {
        "type": "string"
      },
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "IPFamily": {
      "type": "string",
      "description": "To determine if address belongs IPv4 or IPv6 family",
      "enum": [
        "IPv4",
        "IPv6"
      ],
      "x-ms-enum": {
        "name": "IPFamily",
        "modelAsString": true,
        "values": [
          {
            "name": "IPv4",
            "value": "IPv4",
            "description": "IPv4 family"
          },
          {
            "name": "IPv6",
            "value": "IPv6",
            "description": "IPv6 family"
          }
        ]
      }
    },
    "MachineIpAddress": {
      "type": "object",
      "description": "The machine IP address details.",
      "properties": {
        "family": {
          "$ref": "#/$defs/IPFamily",
          "description": "To determine if address belongs IPv4 or IPv6 family",
          "readOnly": true
        },
        "ip": {
          "type": "string",
          "description": "IPv4 or IPv6 address of the machine",
          "readOnly": true
        }
      }
    },
    "MachineNetworkProperties": {
      "type": "object",
      "description": "network properties of the machine",
      "properties": {
        "ipAddresses": {
          "type": "array",
          "description": "IPv4, IPv6 addresses of the machine",
          "items": {
            "$ref": "#/$defs/MachineIpAddress"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        }
      }
    },
    "MachineProperties": {
      "type": "object",
      "description": "The properties of the machine",
      "properties": {
        "network": {
          "$ref": "#/$defs/MachineNetworkProperties",
          "description": "network properties of the machine",
          "readOnly": true
        },
        "resourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "Azure resource id of the machine. It can be used to GET underlying VM Instance",
          "readOnly": true,
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Compute/virtualMachines"
              },
              {
                "type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines"
              }
            ]
          }
        }
      }
    }
  }
}