{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-run-command-input-schema.json",
  "title": "RunCommandInput",
  "description": "Capture Virtual Machine parameters.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-virtualmachinescalesetvms-api-openapi.yml#/components/schemas/RunCommandInput",
  "type": "object",
  "properties": {
    "commandId": {
      "type": "string",
      "description": "Specifies a commandId of predefined built-in script. Command IDs available for Linux are listed at https://aka.ms/RunCommandManagedLinux#available-commands, Windows at https://aka.ms/RunCommandManagedWindows#available-commands."
    },
    "script": {
      "type": "array",
      "description": "Optional. The script to be executed.  When this value is given, the given script will override the default script of the command.",
      "items": {
        "type": "string"
      }
    },
    "parameters": {
      "type": "array",
      "description": "The run command parameters.",
      "items": {
        "$ref": "#/$defs/RunCommandInputParameter"
      },
      "x-ms-identifiers": [
        "name"
      ]
    }
  },
  "required": [
    "commandId"
  ],
  "$defs": {
    "RunCommandInputParameter": {
      "type": "object",
      "description": "Describes the properties of a run command parameter.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The run command parameter name."
        },
        "value": {
          "type": "string",
          "description": "The run command parameter value."
        }
      },
      "required": [
        "name",
        "value"
      ]
    }
  }
}