{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-proximity-placement-group-schema.json",
  "title": "ProximityPlacementGroup",
  "description": "Specifies information about the proximity placement group.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-proximityplacementgroups-api-openapi.yml#/components/schemas/ProximityPlacementGroup",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ProximityPlacementGroupProperties",
      "description": "Describes the properties of a Proximity Placement Group.",
      "x-ms-client-flatten": true
    },
    "zones": {
      "type": "array",
      "description": "The availability zones.",
      "items": {
        "type": "string"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResource"
    }
  ],
  "$defs": {
    "InstanceViewStatus": {
      "type": "object",
      "description": "Instance view status.",
      "properties": {
        "code": {
          "type": "string",
          "description": "The status code."
        },
        "level": {
          "$ref": "#/$defs/StatusLevelTypes",
          "description": "The level code."
        },
        "displayStatus": {
          "type": "string",
          "description": "The short localizable label for the status."
        },
        "message": {
          "type": "string",
          "description": "The detailed status message, including for alerts and error messages."
        },
        "time": {
          "type": "string",
          "format": "date-time",
          "description": "The time of the status."
        }
      }
    },
    "ProximityPlacementGroupProperties": {
      "type": "object",
      "description": "Describes the properties of a Proximity Placement Group.",
      "properties": {
        "proximityPlacementGroupType": {
          "$ref": "#/$defs/ProximityPlacementGroupType",
          "description": "Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use."
        },
        "virtualMachines": {
          "type": "array",
          "description": "A list of references to all virtual machines in the proximity placement group.",
          "items": {
            "$ref": "#/$defs/SubResourceWithColocationStatus"
          },
          "readOnly": true
        },
        "virtualMachineScaleSets": {
          "type": "array",
          "description": "A list of references to all virtual machine scale sets in the proximity placement group.",
          "items": {
            "$ref": "#/$defs/SubResourceWithColocationStatus"
          },
          "readOnly": true
        },
        "availabilitySets": {
          "type": "array",
          "description": "A list of references to all availability sets in the proximity placement group.",
          "items": {
            "$ref": "#/$defs/SubResourceWithColocationStatus"
          },
          "readOnly": true
        },
        "colocationStatus": {
          "$ref": "#/$defs/InstanceViewStatus",
          "description": "Describes colocation status of the Proximity Placement Group."
        },
        "intent": {
          "$ref": "#/$defs/ProximityPlacementGroupPropertiesIntent",
          "description": "Specifies the user intent of the proximity placement group."
        }
      }
    },
    "ProximityPlacementGroupPropertiesIntent": {
      "type": "object",
      "description": "Specifies the user intent of the proximity placement group.",
      "properties": {
        "vmSizes": {
          "type": "array",
          "description": "Specifies possible sizes of virtual machines that can be created in the proximity placement group.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ProximityPlacementGroupType": {
      "type": "string",
      "description": "Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.",
      "enum": [
        "Standard",
        "Ultra"
      ],
      "x-ms-enum": {
        "name": "ProximityPlacementGroupType",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard",
            "value": "Standard"
          },
          {
            "name": "Ultra",
            "value": "Ultra"
          }
        ]
      }
    },
    "StatusLevelTypes": {
      "type": "string",
      "description": "The level code.",
      "enum": [
        "Info",
        "Warning",
        "Error"
      ],
      "x-ms-enum": {
        "name": "StatusLevelTypes",
        "modelAsString": false
      }
    },
    "SubResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource Id"
        }
      }
    },
    "SubResourceWithColocationStatus": {
      "type": "object",
      "properties": {
        "colocationStatus": {
          "$ref": "#/$defs/InstanceViewStatus",
          "description": "Describes colocation status of a resource in the Proximity Placement Group."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "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"
        }
      ]
    }
  }
}