{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-virtual-machine-instance-view-schema.json",
  "title": "VirtualMachineInstanceView",
  "description": "The instance view of a virtual machine.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-virtual-machines-virtual-machines-api-openapi.yml#/components/schemas/VirtualMachineInstanceView",
  "type": "object",
  "properties": {
    "vmAgent": {
      "type": "object",
      "description": "The VM Agent running on the virtual machine.",
      "properties": {
        "vmAgentVersion": {
          "type": "string",
          "description": "The VM Agent full version."
        },
        "statuses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InstanceViewStatus"
          }
        }
      }
    },
    "disks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The disk name."
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/InstanceViewStatus"
            }
          }
        }
      }
    },
    "statuses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InstanceViewStatus"
      },
      "description": "The resource status information."
    },
    "osName": {
      "type": "string",
      "description": "The Operating System running on the virtual machine."
    },
    "osVersion": {
      "type": "string",
      "description": "The version of Operating System running on the virtual machine."
    },
    "computerName": {
      "type": "string",
      "description": "The computer name assigned to the virtual machine."
    }
  },
  "$defs": {
    "InstanceViewStatus": {
      "type": "object",
      "description": "Instance view status.",
      "properties": {
        "code": {
          "type": "string",
          "description": "The status code."
        },
        "level": {
          "type": "string",
          "description": "The level code.",
          "enum": [
            "Info",
            "Warning",
            "Error"
          ]
        },
        "displayStatus": {
          "type": "string",
          "description": "The short localizable label for the status."
        },
        "message": {
          "type": "string",
          "description": "The detailed status message."
        },
        "time": {
          "type": "string",
          "format": "date-time",
          "description": "The time of the status."
        }
      }
    }
  }
}