{
  "$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-extension-image-schema.json",
  "title": "VirtualMachineExtensionImage",
  "description": "Describes a Virtual Machine Extension Image.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-virtualmachineextensionimages-api-openapi.yml#/components/schemas/VirtualMachineExtensionImage",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/VirtualMachineExtensionImageProperties",
      "description": "Describes the properties of a Virtual Machine Extension Image.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResource"
    }
  ],
  "$defs": {
    "ExtensionFeatureMetadata": {
      "type": "object",
      "description": "Additional metadata about extension features, including compliance and capability tags.",
      "properties": {
        "extensionFeatureTags": {
          "type": "array",
          "description": "List of additional metadata properties (e.g., compliance flags, supported features).",
          "items": {
            "$ref": "#/$defs/ExtensionFeatureTag"
          },
          "x-ms-identifiers": [
            "key"
          ]
        }
      }
    },
    "ExtensionFeatureTag": {
      "type": "object",
      "description": "Represents a key-value pair for extension feature metadata.",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key of the feature tag."
        },
        "value": {
          "type": "string",
          "description": "The value of the feature tag."
        }
      },
      "required": [
        "key"
      ]
    },
    "ReleaseCategory": {
      "type": "string",
      "description": "Enumerates the type of change introduced in the extension version.",
      "enum": [
        "Other",
        "BugFix",
        "SecurityFix",
        "CompatibilityUpdate",
        "NewFeature"
      ],
      "x-ms-enum": {
        "name": "ReleaseCategory",
        "modelAsString": true,
        "values": [
          {
            "name": "Other",
            "value": "Other",
            "description": "Other type of change."
          },
          {
            "name": "BugFix",
            "value": "BugFix",
            "description": "Bug fix change."
          },
          {
            "name": "SecurityFix",
            "value": "SecurityFix",
            "description": "Security fix change."
          },
          {
            "name": "CompatibilityUpdate",
            "value": "CompatibilityUpdate",
            "description": "Compatibility update change."
          },
          {
            "name": "NewFeature",
            "value": "NewFeature",
            "description": "New feature change."
          }
        ]
      }
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "RunProfile": {
      "type": "string",
      "description": "Specifies the execution profile for the extension.",
      "enum": [
        "Other",
        "RunOnce",
        "LongRunning",
        "Hybrid"
      ],
      "x-ms-enum": {
        "name": "RunProfile",
        "modelAsString": true,
        "values": [
          {
            "name": "Other",
            "value": "Other",
            "description": "Other execution profile."
          },
          {
            "name": "RunOnce",
            "value": "RunOnce",
            "description": "Run once execution profile."
          },
          {
            "name": "LongRunning",
            "value": "LongRunning",
            "description": "Long running execution profile."
          },
          {
            "name": "Hybrid",
            "value": "Hybrid",
            "description": "Hybrid execution profile."
          }
        ]
      }
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "UrgencyLevel": {
      "type": "string",
      "description": "Defines urgency levels for extension updates.",
      "enum": [
        "Regular",
        "Expedited",
        "Emergency"
      ],
      "x-ms-enum": {
        "name": "UrgencyLevel",
        "modelAsString": true,
        "values": [
          {
            "name": "Regular",
            "value": "Regular",
            "description": "Regular urgency level."
          },
          {
            "name": "Expedited",
            "value": "Expedited",
            "description": "Expedited urgency level."
          },
          {
            "name": "Emergency",
            "value": "Emergency",
            "description": "Emergency urgency level."
          }
        ]
      }
    },
    "VirtualMachineExtensionImageProperties": {
      "type": "object",
      "description": "Describes the properties of a Virtual Machine Extension Image.",
      "properties": {
        "operatingSystem": {
          "type": "string",
          "description": "The operating system this extension supports."
        },
        "computeRole": {
          "type": "string",
          "description": "The type of role (IaaS or PaaS) this extension supports."
        },
        "handlerSchema": {
          "type": "string",
          "description": "The schema defined by publisher, where extension consumers should provide settings in a matching schema."
        },
        "vmScaleSetEnabled": {
          "type": "boolean",
          "description": "Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS."
        },
        "supportsMultipleExtensions": {
          "type": "boolean",
          "description": "Whether the handler can support multiple extensions."
        },
        "releaseNotes": {
          "type": "string",
          "description": "Summary of changes or updates in this extension version.",
          "readOnly": true
        },
        "releaseCategory": {
          "$ref": "#/$defs/ReleaseCategory",
          "description": "Categorizes the type of change introduced (e.g., BugFix, SecurityFix, CompatibilityUpdate, NewFeature, Other).",
          "readOnly": true
        },
        "urgencyLevel": {
          "$ref": "#/$defs/UrgencyLevel",
          "description": "Indicates the urgency level for applying this extension update.",
          "readOnly": true
        },
        "runProfile": {
          "$ref": "#/$defs/RunProfile",
          "description": "Specifies when and how the extension should be executed.",
          "readOnly": true
        },
        "extensionFeatureMetadata": {
          "$ref": "#/$defs/ExtensionFeatureMetadata",
          "description": "Additional metadata about extension features, including compliance and capability tags.",
          "readOnly": true
        }
      },
      "required": [
        "operatingSystem",
        "computeRole",
        "handlerSchema"
      ]
    }
  }
}