{
  "$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-scale-set-schema.json",
  "title": "VirtualMachineScaleSet",
  "description": "Describes a Virtual Machine Scale Set.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-virtualmachinescalesets-api-openapi.yml#/components/schemas/VirtualMachineScaleSet",
  "type": "object",
  "properties": {
    "sku": {
      "$ref": "#/$defs/Sku",
      "description": "The virtual machine scale set sku."
    },
    "plan": {
      "$ref": "#/$defs/Plan",
      "description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use.  In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**."
    },
    "properties": {
      "$ref": "#/$defs/VirtualMachineScaleSetProperties",
      "description": "Describes the properties of a Virtual Machine Scale Set.",
      "x-ms-client-flatten": true
    },
    "identity": {
      "$ref": "#/$defs/VirtualMachineScaleSetIdentity",
      "description": "The identity of the virtual machine scale set, if configured."
    },
    "zones": {
      "type": "array",
      "description": "The availability zones.",
      "items": {
        "type": "string"
      }
    },
    "extendedLocation": {
      "$ref": "#/$defs/ExtendedLocation",
      "description": "The extended location of the Virtual Machine Scale Set."
    },
    "etag": {
      "type": "string",
      "description": "Etag is property returned in Create/Update/Get response of the VMSS, so that customer can supply it in the header to ensure optimistic updates",
      "readOnly": true
    },
    "placement": {
      "$ref": "#/$defs/Placement",
      "description": "Placement section specifies the user-defined constraints for virtual machine scale set hardware placement. Minimum api-version: 2025-04-01."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResource"
    }
  ],
  "$defs": {
    "AdditionalCapabilities": {
      "type": "object",
      "description": "Enables or disables a capability on the virtual machine or virtual machine scale set.",
      "properties": {
        "ultraSSDEnabled": {
          "type": "boolean",
          "description": "The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled."
        },
        "hibernationEnabled": {
          "type": "boolean",
          "description": "The flag that enables or disables hibernation capability on the VM."
        },
        "enableFips1403Encryption": {
          "type": "boolean",
          "description": "The flag enables the usage of FIPS 140-3 compliant cryptography on the protectedSettings of an extension. Learn more at: https://aka.ms/linuxagentfipssupport."
        }
      }
    },
    "AdditionalDiskProperties": {
      "type": "object",
      "description": "Specifies additional properties for a managed disk that can be set at the time of implicit creation of the disk.",
      "properties": {
        "managedDiskProperties": {
          "$ref": "#/$defs/ManagedDiskProperties",
          "description": "Specifies the managed disk properties that can be set at the time of implicit creation of the disk."
        }
      }
    },
    "AdditionalUnattendContent": {
      "type": "object",
      "description": "Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.",
      "properties": {
        "passName": {
          "$ref": "#/$defs/PassNames",
          "description": "The pass name. Currently, the only allowable value is OobeSystem."
        },
        "componentName": {
          "$ref": "#/$defs/ComponentNames",
          "description": "The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup."
        },
        "settingName": {
          "$ref": "#/$defs/SettingNames",
          "description": "Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon."
        },
        "content": {
          "type": "string",
          "description": "Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted."
        }
      }
    },
    "AllInstancesDown": {
      "type": "object",
      "description": "Specifies if Scheduled Events should be auto-approved when all instances are down.",
      "properties": {
        "automaticallyApprove": {
          "type": "boolean",
          "description": "Specifies if Scheduled Events should be auto-approved when all instances are down.\nits default value is true"
        }
      }
    },
    "AllocationStrategy": {
      "type": "string",
      "description": "Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated.",
      "enum": [
        "LowestPrice",
        "CapacityOptimized",
        "Prioritized"
      ],
      "x-ms-enum": {
        "name": "AllocationStrategy",
        "modelAsString": true,
        "values": [
          {
            "name": "LowestPrice",
            "value": "LowestPrice"
          },
          {
            "name": "CapacityOptimized",
            "value": "CapacityOptimized"
          },
          {
            "name": "Prioritized",
            "value": "Prioritized"
          }
        ]
      }
    },
    "ApiEntityReference": {
      "type": "object",
      "description": "The API entity reference.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/..."
        }
      }
    },
    "ApplicationProfile": {
      "type": "object",
      "description": "Contains the list of gallery applications that should be made available to the VM/VMSS",
      "properties": {
        "galleryApplications": {
          "type": "array",
          "description": "Specifies the gallery applications that should be made available to the VM/VMSS",
          "items": {
            "$ref": "#/$defs/VMGalleryApplication"
          },
          "x-ms-identifiers": [
            "packageReferenceId"
          ]
        }
      }
    },
    "AutomaticOSUpgradePolicy": {
      "type": "object",
      "description": "The configuration parameters used for performing automatic OS upgrade.",
      "properties": {
        "enableAutomaticOSUpgrade": {
          "type": "boolean",
          "description": "Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true."
        },
        "disableAutomaticRollback": {
          "type": "boolean",
          "description": "Whether OS image rollback feature should be disabled. Default value is false."
        },
        "useRollingUpgradePolicy": {
          "type": "boolean",
          "description": "Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value is false. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS."
        },
        "osRollingUpgradeDeferral": {
          "type": "boolean",
          "description": "Indicates whether Auto OS Upgrade should undergo deferral. Deferred OS upgrades will send advanced notifications on a per-VM basis that an OS upgrade from rolling upgrades is incoming, via the IMDS tag 'Platform.PendingOSUpgrade'. The upgrade then defers until the upgrade is approved via an ApproveRollingUpgrade call."
        }
      }
    },
    "AutomaticRepairsPolicy": {
      "type": "object",
      "description": "Specifies the configuration parameters for automatic repairs on the virtual machine scale set.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false."
        },
        "gracePeriod": {
          "type": "string",
          "description": "The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M)."
        },
        "repairAction": {
          "$ref": "#/$defs/RepairAction",
          "description": "Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace."
        }
      }
    },
    "AutomaticSkuMigrationPolicy": {
      "type": "object",
      "description": "Specifies the configuration parameters used to control automatic SKU migration for the virtual machine scale set. When enabled, the platform may migrate instances to a different VM size from the SKU profile depending on platform demands.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether automatic SKU migration should be enabled on the virtual machine scale set. The default value is false."
        }
      }
    },
    "AutomaticZoneRebalancingPolicy": {
      "type": "object",
      "description": "The configuration parameters used while performing automatic AZ balancing.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. The default value is false."
        },
        "rebalanceStrategy": {
          "$ref": "#/$defs/RebalanceStrategy",
          "description": "Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set across availability zones. Default and only supported value for now is Recreate."
        },
        "rebalanceBehavior": {
          "$ref": "#/$defs/RebalanceBehavior",
          "description": "Type of rebalance behavior that will be used for recreating virtual machines in the scale set across availability zones. Default and only supported value for now is CreateBeforeDelete."
        }
      }
    },
    "AvailabilityPolicyDiskDelay": {
      "type": "string",
      "description": "Determines how to handle disks with slow I/O.",
      "enum": [
        "None",
        "AutomaticReattach"
      ],
      "x-ms-enum": {
        "name": "AvailabilityPolicyDiskDelay",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "Defaults to behavior without availability policy specified, which is VM restart upon slow disk I/O."
          },
          {
            "name": "AutomaticReattach",
            "value": "AutomaticReattach",
            "description": "Upon a disk I/O failure or slow response, try detaching then reattaching the disk."
          }
        ]
      }
    },
    "BillingProfile": {
      "type": "object",
      "description": "Specifies the billing related details of a Azure Spot VM or VMSS. Minimum api-version: 2019-03-01.",
      "properties": {
        "maxPrice": {
          "type": "number",
          "format": "double",
          "description": "Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. <br><br> This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if  the maxPrice is greater than the current Azure Spot price. <br><br> The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS. <br><br> Possible values are: <br><br> - Any decimal value greater than zero. Example: 0.01538 <br><br> -1 – indicates default price to be up-to on-demand. <br><br> You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you. <br><br>Minimum api-version: 2019-03-01."
        }
      }
    },
    "BootDiagnostics": {
      "type": "object",
      "description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether boot diagnostics should be enabled on the Virtual Machine."
        },
        "storageUri": {
          "type": "string",
          "description": "Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used."
        }
      }
    },
    "CachingTypes": {
      "type": "string",
      "description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage**",
      "enum": [
        "None",
        "ReadOnly",
        "ReadWrite"
      ],
      "x-ms-enum": {
        "name": "CachingTypes",
        "modelAsString": false
      }
    },
    "CapacityReservationProfile": {
      "type": "object",
      "description": "The parameters of a capacity reservation Profile.",
      "properties": {
        "capacityReservationGroup": {
          "$ref": "#/$defs/SubResource",
          "description": "Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details."
        },
        "disableCapacityReservationAssignment": {
          "type": "boolean",
          "description": "Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity. Minimum api-version: 2026-04-01."
        }
      }
    },
    "Common.OperatingSystemTypes": {
      "type": "string",
      "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**",
      "enum": [
        "Windows",
        "Linux"
      ],
      "x-ms-enum": {
        "name": "OperatingSystemTypes",
        "modelAsString": false
      }
    },
    "Common.ResourceIdentityType": {
      "type": "string",
      "description": "The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set.",
      "enum": [
        "SystemAssigned",
        "UserAssigned",
        "SystemAssigned, UserAssigned",
        "None"
      ],
      "x-ms-enum": {
        "name": "ResourceIdentityType",
        "modelAsString": false
      }
    },
    "Common.UserAssignedIdentitiesValue": {
      "type": "object",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of user assigned identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "The client id of user assigned identity.",
          "readOnly": true
        }
      }
    },
    "ComponentNames": {
      "type": "string",
      "enum": [
        "Microsoft-Windows-Shell-Setup"
      ],
      "x-ms-enum": {
        "modelAsString": false
      }
    },
    "DeleteOptions": {
      "type": "string",
      "description": "Specify what happens to the network interface when the VM is deleted",
      "enum": [
        "Delete",
        "Detach"
      ],
      "x-ms-enum": {
        "name": "DeleteOptions",
        "modelAsString": true,
        "values": [
          {
            "name": "Delete",
            "value": "Delete"
          },
          {
            "name": "Detach",
            "value": "Detach"
          }
        ]
      }
    },
    "DiagnosticsProfile": {
      "type": "object",
      "description": "Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.",
      "properties": {
        "bootDiagnostics": {
          "$ref": "#/$defs/BootDiagnostics",
          "description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor."
        }
      }
    },
    "DiffDiskOptions": {
      "type": "string",
      "description": "Specifies the ephemeral disk option for operating system disk.",
      "enum": [
        "Local"
      ],
      "x-ms-enum": {
        "name": "DiffDiskOptions",
        "modelAsString": true,
        "values": [
          {
            "name": "Local",
            "value": "Local"
          }
        ]
      }
    },
    "DiffDiskPlacement": {
      "type": "string",
      "description": "Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e, cache disk, resource disk or nvme disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. Minimum api-version for NvmeDisk: 2024-03-01.",
      "enum": [
        "CacheDisk",
        "ResourceDisk",
        "NvmeDisk"
      ],
      "x-ms-enum": {
        "name": "DiffDiskPlacement",
        "modelAsString": true,
        "values": [
          {
            "name": "CacheDisk",
            "value": "CacheDisk"
          },
          {
            "name": "ResourceDisk",
            "value": "ResourceDisk"
          },
          {
            "name": "NvmeDisk",
            "value": "NvmeDisk"
          }
        ]
      }
    },
    "DiffDiskSettings": {
      "type": "object",
      "description": "Describes the parameters of ephemeral disk settings that can be specified for operating system disk. **Note:** The ephemeral disk settings can only be specified for managed disk.",
      "properties": {
        "option": {
          "$ref": "#/$defs/DiffDiskOptions",
          "description": "Specifies the ephemeral disk settings for operating system disk."
        },
        "placement": {
          "$ref": "#/$defs/DiffDiskPlacement",
          "description": "Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk,** **NvmeDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** or **NvmeDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version for NvmeDisk: 2024-03-01."
        },
        "enableFullCaching": {
          "type": "boolean",
          "description": "Specifies whether or not to enable full caching for this VM which will cache the OS disk locally on the host and make this VM more resilient to storage outages"
        }
      }
    },
    "DiskApiVersion": {
      "type": "string",
      "description": "Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD.",
      "enum": [
        "2025-01-02",
        "2026-03-02"
      ],
      "x-ms-enum": {
        "name": "DiskApiVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "2025-01-02",
            "value": "2025-01-02",
            "description": "The 2025-01-02 Disk RP API version."
          },
          {
            "name": "2026-03-02",
            "value": "2026-03-02",
            "description": "The 2026-03-02 Disk RP API version."
          }
        ]
      }
    },
    "DiskAvailabilityPolicy": {
      "type": "object",
      "description": "In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.",
      "properties": {
        "actionOnDiskDelay": {
          "$ref": "#/$defs/AvailabilityPolicyDiskDelay",
          "description": "Determines how to handle disks with slow I/O."
        }
      }
    },
    "DiskControllerTypes": {
      "type": "string",
      "description": "Specifies the disk controller type configured for the VM and VirtualMachineScaleSet. This property is only supported for virtual machines whose operating system disk and VM sku supports Generation 2 (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please check the HyperVGenerations capability returned as part of VM sku capabilities in the response of Microsoft.Compute SKUs api for the region contains V2 (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more information about Disk Controller Types supported please refer to https://aka.ms/azure-diskcontrollertypes.",
      "enum": [
        "SCSI",
        "NVMe"
      ],
      "x-ms-enum": {
        "name": "DiskControllerTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "SCSI",
            "value": "SCSI"
          },
          {
            "name": "NVMe",
            "value": "NVMe"
          }
        ]
      }
    },
    "DiskCreateOptionTypes": {
      "type": "string",
      "description": "Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. **Empty:** This value is used when creating an empty data disk. **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point.",
      "enum": [
        "FromImage",
        "Empty",
        "Attach",
        "Copy",
        "Restore"
      ],
      "x-ms-enum": {
        "name": "DiskCreateOptionTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "FromImage",
            "value": "FromImage"
          },
          {
            "name": "Empty",
            "value": "Empty"
          },
          {
            "name": "Attach",
            "value": "Attach"
          },
          {
            "name": "Copy",
            "value": "Copy"
          },
          {
            "name": "Restore",
            "value": "Restore"
          }
        ]
      }
    },
    "DiskDeleteOptionTypes": {
      "type": "string",
      "description": "Specifies the behavior of the managed disk when the VM gets deleted, for example whether the managed disk is deleted or detached. Supported values are: **Delete.** If this value is used, the managed disk is deleted when VM gets deleted. **Detach.** If this value is used, the managed disk is retained after VM gets deleted. Minimum api-version: 2021-03-01.",
      "enum": [
        "Delete",
        "Detach"
      ],
      "x-ms-enum": {
        "name": "DiskDeleteOptionTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Delete",
            "value": "Delete"
          },
          {
            "name": "Detach",
            "value": "Detach"
          }
        ]
      }
    },
    "DiskEncryptionSetParameters": {
      "type": "object",
      "description": "Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.",
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "DomainNameLabelScopeTypes": {
      "type": "string",
      "description": "The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created",
      "enum": [
        "TenantReuse",
        "SubscriptionReuse",
        "ResourceGroupReuse",
        "NoReuse"
      ],
      "x-ms-enum": {
        "name": "DomainNameLabelScopeTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "TenantReuse",
            "value": "TenantReuse"
          },
          {
            "name": "SubscriptionReuse",
            "value": "SubscriptionReuse"
          },
          {
            "name": "ResourceGroupReuse",
            "value": "ResourceGroupReuse"
          },
          {
            "name": "NoReuse",
            "value": "NoReuse"
          }
        ]
      }
    },
    "EncryptionIdentity": {
      "type": "object",
      "description": "Specifies the Managed Identity used by ADE to get access token for keyvault operations.",
      "properties": {
        "userAssignedIdentityResourceId": {
          "type": "string",
          "description": "Specifies ARM Resource ID of one of the user identities associated with the VM."
        }
      }
    },
    "EventGridAndResourceGraph": {
      "type": "object",
      "description": "Specifies eventGridAndResourceGraph related Scheduled Event related configurations.",
      "properties": {
        "enable": {
          "type": "boolean",
          "description": "Specifies if event grid and resource graph is enabled for Scheduled event related configurations."
        },
        "scheduledEventsApiVersion": {
          "type": "string",
          "description": "Specifies the api-version to determine which Scheduled Events configuration schema version will be delivered."
        }
      }
    },
    "ExtendedLocation": {
      "type": "object",
      "description": "The complex type of the extended location.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the extended location."
        },
        "type": {
          "$ref": "#/$defs/ExtendedLocationType",
          "description": "The type of the extended location."
        }
      }
    },
    "ExtendedLocationType": {
      "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
    },
    "ExternalHealthPolicy": {
      "type": "object",
      "description": "Specifies the external health policy for the virtual machine scale set.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "If true, external health is enabled for this scale set. Cannot be set to true on instances where another health monitoring source is active (ApplicationHealth extension or SLB). Defaults to false."
        },
        "expiryDuration": {
          "type": "string",
          "format": "duration",
          "description": "Defines how long the health status set by External Health API will last on the VM. If a signal is not received/updated within this time, the VM Health will be marked as \"unknown\". Uses the ISO 8601 format. Minimum: 5 minutes (PT5M), Maximum: 3 hours (PT3H)."
        },
        "gracePeriod": {
          "type": "string",
          "format": "duration",
          "description": "Grace period for newly created VMs or when the External Health policy is first applied on VMSS. Uses the ISO 8601 format. Minimum: 5 minutes (PT5M), Maximum: 4 hours (PT4H)."
        }
      }
    },
    "HighSpeedInterconnectPlacement": {
      "type": "string",
      "description": "Specifies the high speed interconnect placement for the virtual machine scale set.",
      "enum": [
        "None",
        "Trunk"
      ],
      "x-ms-enum": {
        "name": "HighSpeedInterconnectPlacement",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "No high speed interconnect placement"
          },
          {
            "name": "Trunk",
            "value": "Trunk",
            "description": "Trunk high speed interconnect placement"
          }
        ]
      }
    },
    "HostEndpointSettings": {
      "type": "object",
      "description": "Specifies particular host endpoint settings.",
      "properties": {
        "mode": {
          "$ref": "#/$defs/Modes",
          "description": "Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation."
        },
        "inVMAccessControlProfileReferenceId": {
          "type": "string",
          "description": "Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}"
        },
        "useLocalFileRules": {
          "type": "boolean",
          "description": "When set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM."
        }
      }
    },
    "IPVersion": {
      "type": "string",
      "description": "Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.",
      "enum": [
        "IPv4",
        "IPv6"
      ],
      "x-ms-enum": {
        "name": "IPVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "IPv4",
            "value": "IPv4"
          },
          {
            "name": "IPv6",
            "value": "IPv6"
          }
        ]
      }
    },
    "ImageReference": {
      "type": "object",
      "description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.",
      "properties": {
        "publisher": {
          "type": "string",
          "description": "The image publisher."
        },
        "offer": {
          "type": "string",
          "description": "Specifies the offer of the platform image or marketplace image used to create the virtual machine."
        },
        "sku": {
          "type": "string",
          "description": "The image SKU."
        },
        "version": {
          "type": "string",
          "description": "Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input."
        },
        "exactVersion": {
          "type": "string",
          "description": "Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.",
          "readOnly": true
        },
        "sharedGalleryImageId": {
          "type": "string",
          "description": "Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call."
        },
        "communityGalleryImageId": {
          "type": "string",
          "description": "Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "InterconnectBlockProfile": {
      "type": "object",
      "description": "The parameters of an Interconnect Block Profile.",
      "properties": {
        "interconnectBlock": {
          "$ref": "#/$defs/ApiEntityReference",
          "description": "Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved."
        }
      }
    },
    "InterconnectGroupProfile": {
      "type": "object",
      "description": "Specifies the interconnect group profile for a virtual machine, used to associate the VM with an interconnect group and subgroups.",
      "properties": {
        "interconnectGroup": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to the interconnect group resource."
        },
        "subgroups": {
          "type": "array",
          "description": "The list of subgroup references within the interconnect group.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        }
      }
    },
    "KeyVaultSecretReference": {
      "type": "object",
      "description": "Describes a reference to Key Vault Secret",
      "properties": {
        "secretUrl": {
          "type": "string",
          "description": "The URL referencing a secret in a Key Vault."
        },
        "sourceVault": {
          "$ref": "#/$defs/SubResource",
          "description": "The relative URL of the Key Vault containing the secret."
        }
      },
      "required": [
        "secretUrl",
        "sourceVault"
      ]
    },
    "LifecycleHook": {
      "type": "object",
      "description": "Describes a lifecycle hook.",
      "properties": {
        "type": {
          "$ref": "#/$defs/VMScaleSetLifecycleHookEventType",
          "description": "Specifies the type of the lifecycle hook."
        },
        "waitDuration": {
          "type": "string",
          "format": "duration",
          "description": "Specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format."
        },
        "defaultAction": {
          "$ref": "#/$defs/LifecycleHookAction",
          "description": "Specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil."
        }
      }
    },
    "LifecycleHookAction": {
      "type": "string",
      "description": "The action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil.",
      "enum": [
        "Approve",
        "Reject"
      ],
      "x-ms-enum": {
        "name": "LifecycleHookAction",
        "modelAsString": true,
        "values": [
          {
            "name": "Approve",
            "value": "Approve",
            "description": "The lifecycle hook of a target resource in a lifecycle hook event will be approved."
          },
          {
            "name": "Reject",
            "value": "Reject",
            "description": "The lifecycle hook of a target resource in a lifecycle hook event will be rejected."
          }
        ]
      }
    },
    "LifecycleHooksProfile": {
      "type": "object",
      "description": "Specifies the lifecycle hooks profile for the virtual machine scale set.",
      "properties": {
        "lifecycleHooks": {
          "type": "array",
          "description": "Specifies the lifecycle hooks configured for the virtual machine scale set.",
          "items": {
            "$ref": "#/$defs/LifecycleHook"
          },
          "x-ms-identifiers": [
            "type"
          ]
        }
      }
    },
    "LinuxConfiguration": {
      "type": "object",
      "description": "Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).",
      "properties": {
        "disablePasswordAuthentication": {
          "type": "boolean",
          "description": "Specifies whether password authentication should be disabled."
        },
        "ssh": {
          "$ref": "#/$defs/SshConfiguration",
          "description": "Specifies the ssh key configuration for a Linux OS."
        },
        "provisionVMAgent": {
          "type": "boolean",
          "description": "Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later."
        },
        "patchSettings": {
          "$ref": "#/$defs/LinuxPatchSettings",
          "description": "[Preview Feature] Specifies settings related to VM Guest Patching on Linux."
        },
        "enableVMAgentPlatformUpdates": {
          "type": "boolean",
          "description": "Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false."
        }
      }
    },
    "LinuxPatchAssessmentMode": {
      "type": "string",
      "description": "Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.",
      "enum": [
        "ImageDefault",
        "AutomaticByPlatform"
      ],
      "x-ms-enum": {
        "name": "LinuxPatchAssessmentMode",
        "modelAsString": true,
        "values": [
          {
            "name": "ImageDefault",
            "value": "ImageDefault"
          },
          {
            "name": "AutomaticByPlatform",
            "value": "AutomaticByPlatform"
          }
        ]
      }
    },
    "LinuxPatchSettings": {
      "type": "object",
      "description": "Specifies settings related to VM Guest Patching on Linux.",
      "properties": {
        "patchMode": {
          "$ref": "#/$defs/LinuxVMGuestPatchMode",
          "description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true"
        },
        "assessmentMode": {
          "$ref": "#/$defs/LinuxPatchAssessmentMode",
          "description": "Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true."
        },
        "automaticByPlatformSettings": {
          "$ref": "#/$defs/LinuxVMGuestPatchAutomaticByPlatformSettings",
          "description": "Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux."
        }
      }
    },
    "LinuxVMGuestPatchAutomaticByPlatformRebootSetting": {
      "type": "string",
      "description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations.",
      "enum": [
        "Unknown",
        "IfRequired",
        "Never",
        "Always"
      ],
      "x-ms-enum": {
        "name": "LinuxVMGuestPatchAutomaticByPlatformRebootSetting",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown"
          },
          {
            "name": "IfRequired",
            "value": "IfRequired"
          },
          {
            "name": "Never",
            "value": "Never"
          },
          {
            "name": "Always",
            "value": "Always"
          }
        ]
      }
    },
    "LinuxVMGuestPatchAutomaticByPlatformSettings": {
      "type": "object",
      "description": "Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Linux patch settings.",
      "properties": {
        "rebootSetting": {
          "$ref": "#/$defs/LinuxVMGuestPatchAutomaticByPlatformRebootSetting",
          "description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations."
        },
        "bypassPlatformSafetyChecksOnUserSchedule": {
          "type": "boolean",
          "description": "Enables customer to schedule patching without accidental upgrades"
        }
      }
    },
    "LinuxVMGuestPatchMode": {
      "type": "string",
      "description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true",
      "enum": [
        "ImageDefault",
        "AutomaticByPlatform"
      ],
      "x-ms-enum": {
        "name": "LinuxVMGuestPatchMode",
        "modelAsString": true,
        "values": [
          {
            "name": "ImageDefault",
            "value": "ImageDefault"
          },
          {
            "name": "AutomaticByPlatform",
            "value": "AutomaticByPlatform"
          }
        ]
      }
    },
    "ManagedDiskProperties": {
      "type": "object",
      "description": "Specifies the properties of a managed disk that can be set at the time of implicit creation of the disk.",
      "properties": {
        "tier": {
          "type": "string",
          "description": "Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks."
        },
        "burstingEnabled": {
          "type": "boolean",
          "description": "Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks."
        },
        "performancePlus": {
          "type": "boolean",
          "description": "Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled."
        },
        "optimizedForFrequentAttach": {
          "type": "boolean",
          "description": "Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine."
        },
        "availabilityPolicy": {
          "$ref": "#/$defs/DiskAvailabilityPolicy",
          "description": "In the case of an availability or connectivity issue with the disk, specify the behavior of your VM."
        },
        "maxShares": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.",
          "minimum": 1
        },
        "networkAccessPolicy": {
          "$ref": "#/$defs/NetworkAccessPolicy",
          "description": "Policy for accessing the disk via network."
        },
        "diskAccessId": {
          "type": "string",
          "description": "Azure resource Id of the DiskAccess resource for using private endpoints on disks."
        },
        "diskIOPSReadOnly": {
          "type": "integer",
          "format": "int64",
          "description": "The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes."
        },
        "diskMBpsReadOnly": {
          "type": "integer",
          "format": "int64",
          "description": "The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10."
        },
        "logicalSectorSize": {
          "type": "integer",
          "format": "int32",
          "description": "Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default."
        }
      }
    },
    "MaxInstancePercentPerZonePolicy": {
      "type": "object",
      "description": "The configuration parameters used to limit the number of virtual machines per availability zone in the virtual machine scale set.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether maxInstancePercentPerZonePolicy should be enabled on the virtual machine scale set."
        },
        "value": {
          "type": "integer",
          "format": "int32",
          "description": "Limit on the number of instances in each zone as a percentage of the total capacity of the virtual machine scale set.",
          "maximum": 100
        }
      }
    },
    "Mode": {
      "type": "string",
      "description": "Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode.",
      "enum": [
        "Audit",
        "Enforce"
      ],
      "x-ms-enum": {
        "name": "Mode",
        "modelAsString": true,
        "values": [
          {
            "name": "Audit",
            "value": "Audit"
          },
          {
            "name": "Enforce",
            "value": "Enforce"
          }
        ]
      }
    },
    "Modes": {
      "type": "string",
      "description": "Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.",
      "enum": [
        "Audit",
        "Enforce",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "Modes",
        "modelAsString": true,
        "values": [
          {
            "name": "Audit",
            "value": "Audit"
          },
          {
            "name": "Enforce",
            "value": "Enforce"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "NetworkAccessPolicy": {
      "type": "string",
      "description": "Policy for accessing the disk via network.",
      "enum": [
        "AllowAll",
        "AllowPrivate",
        "DenyAll"
      ],
      "x-ms-enum": {
        "name": "NetworkAccessPolicy",
        "modelAsString": true,
        "values": [
          {
            "name": "AllowAll",
            "value": "AllowAll",
            "description": "The disk can be exported or uploaded from any network."
          },
          {
            "name": "AllowPrivate",
            "value": "AllowPrivate",
            "description": "The disk can be exported or uploaded using a DiskAccess resource's private endpoints."
          },
          {
            "name": "DenyAll",
            "value": "DenyAll",
            "description": "The disk cannot be exported."
          }
        ]
      }
    },
    "NetworkApiVersion": {
      "type": "string",
      "description": "specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations",
      "enum": [
        "2020-11-01",
        "2022-11-01"
      ],
      "x-ms-enum": {
        "name": "NetworkApiVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "2020-11-01",
            "value": "2020-11-01"
          },
          {
            "name": "2022-11-01",
            "value": "2022-11-01"
          }
        ]
      }
    },
    "NetworkInterfaceAuxiliaryMode": {
      "type": "string",
      "description": "Specifies whether the Auxiliary mode is enabled for the Network Interface resource.",
      "enum": [
        "None",
        "AcceleratedConnections",
        "Floating"
      ],
      "x-ms-enum": {
        "name": "NetworkInterfaceAuxiliaryMode",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None"
          },
          {
            "name": "AcceleratedConnections",
            "value": "AcceleratedConnections"
          },
          {
            "name": "Floating",
            "value": "Floating"
          }
        ]
      }
    },
    "NetworkInterfaceAuxiliarySku": {
      "type": "string",
      "description": "Specifies whether the Auxiliary sku is enabled for the Network Interface resource.",
      "enum": [
        "None",
        "A1",
        "A2",
        "A4",
        "A8"
      ],
      "x-ms-enum": {
        "name": "NetworkInterfaceAuxiliarySku",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None"
          },
          {
            "name": "A1",
            "value": "A1"
          },
          {
            "name": "A2",
            "value": "A2"
          },
          {
            "name": "A4",
            "value": "A4"
          },
          {
            "name": "A8",
            "value": "A8"
          }
        ]
      }
    },
    "OSImageNotificationProfile": {
      "type": "object",
      "properties": {
        "notBeforeTimeout": {
          "type": "string",
          "description": "Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M)"
        },
        "enable": {
          "type": "boolean",
          "description": "Specifies whether the OS Image Scheduled event is enabled or disabled."
        }
      }
    },
    "OperationRecoverySettings": {
      "type": "object",
      "description": "The configuration parameters used for operation recovery settings on a virtual machine scale set.",
      "properties": {
        "restartRecoveryPolicy": {
          "$ref": "#/$defs/RestartRecoveryPolicy",
          "description": "The configuration parameters used for restart recovery policy."
        },
        "startRecoveryPolicy": {
          "$ref": "#/$defs/StartRecoveryPolicy",
          "description": "The configuration parameters used for start recovery policy."
        },
        "reimageRecoveryPolicy": {
          "$ref": "#/$defs/ReimageRecoveryPolicy",
          "description": "The configuration parameters used for reimage recovery policy."
        }
      }
    },
    "OrchestrationMode": {
      "type": "string",
      "description": "Specifies the orchestration mode for the virtual machine scale set.",
      "enum": [
        "Uniform",
        "Flexible"
      ],
      "x-ms-enum": {
        "name": "OrchestrationMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Uniform",
            "value": "Uniform"
          },
          {
            "name": "Flexible",
            "value": "Flexible"
          }
        ]
      }
    },
    "PassNames": {
      "type": "string",
      "enum": [
        "OobeSystem"
      ],
      "x-ms-enum": {
        "modelAsString": false
      }
    },
    "PatchSettings": {
      "type": "object",
      "description": "Specifies settings related to VM Guest Patching on Windows.",
      "properties": {
        "patchMode": {
          "$ref": "#/$defs/WindowsVMGuestPatchMode",
          "description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You  control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true"
        },
        "enableHotpatching": {
          "type": "boolean",
          "description": "Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'."
        },
        "assessmentMode": {
          "$ref": "#/$defs/WindowsPatchAssessmentMode",
          "description": "Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true."
        },
        "automaticByPlatformSettings": {
          "$ref": "#/$defs/WindowsVMGuestPatchAutomaticByPlatformSettings",
          "description": "Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows."
        }
      }
    },
    "Placement": {
      "type": "object",
      "description": "Describes the user-defined constraints for resource hardware placement.",
      "properties": {
        "zonePlacementPolicy": {
          "$ref": "#/$defs/ZonePlacementPolicyType",
          "description": "Specifies the policy for the resource's placement in an availability zone. Use **Auto** for Virtual Machines and Virtual Machine Scale Sets to let the system automatically select an availability zone during resource creation. **Any** remains supported for Virtual Machines for backward compatibility."
        },
        "includeZones": {
          "type": "array",
          "description": "This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection.",
          "items": {
            "type": "string"
          }
        },
        "excludeZones": {
          "type": "array",
          "description": "This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Plan": {
      "type": "object",
      "description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use.  In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The plan ID."
        },
        "publisher": {
          "type": "string",
          "description": "The publisher ID."
        },
        "product": {
          "type": "string",
          "description": "Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element."
        },
        "promotionCode": {
          "type": "string",
          "description": "The promotion code."
        }
      }
    },
    "PriorityMixPolicy": {
      "type": "object",
      "description": "Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode. With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached.",
      "properties": {
        "baseRegularPriorityCount": {
          "type": "integer",
          "format": "int32",
          "description": "The base number of regular priority VMs that will be created in this scale set as it scales out."
        },
        "regularPriorityPercentageAboveBase": {
          "type": "integer",
          "format": "int32",
          "description": "The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority.",
          "maximum": 100
        }
      }
    },
    "ProcessorMode": {
      "type": "string",
      "description": "Specifies the processor frequency behavior for the virtual machine. See each member for the behavior it controls.",
      "enum": [
        "Deterministic",
        "Opportunistic"
      ],
      "x-ms-enum": {
        "name": "ProcessorMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Deterministic",
            "value": "Deterministic",
            "description": "Ensures predictable and consistent processor frequency at the base/nominal level. Turbo/Boost is disabled."
          },
          {
            "name": "Opportunistic",
            "value": "Opportunistic",
            "description": "Allows higher frequency bursts when thermal and power headroom permits."
          }
        ]
      }
    },
    "ProtocolTypes": {
      "type": "string",
      "description": "Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**",
      "enum": [
        "Http",
        "Https"
      ],
      "x-ms-enum": {
        "name": "ProtocolTypes",
        "modelAsString": false
      }
    },
    "ProxyAgentSettings": {
      "type": "object",
      "description": "Specifies ProxyAgent settings for the virtual machine or virtual machine scale set. Minimum api-version: 2023-09-01.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set."
        },
        "mode": {
          "$ref": "#/$defs/Mode",
          "description": "Specifies the mode that ProxyAgent will execute on. Warning: this property has been deprecated, please specify 'mode' under particular hostendpoint setting."
        },
        "keyIncarnationId": {
          "type": "integer",
          "format": "int32",
          "description": "Increase the value of this property allows users to reset the key used for securing communication channel between guest and host."
        },
        "wireServer": {
          "$ref": "#/$defs/HostEndpointSettings",
          "description": "Specifies the Wire Server endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01."
        },
        "imds": {
          "$ref": "#/$defs/HostEndpointSettings",
          "description": "Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01."
        },
        "addProxyAgentExtension": {
          "type": "boolean",
          "description": "Specify whether to implicitly install the ProxyAgent Extension. This option is currently applicable only for Linux Os."
        }
      }
    },
    "PublicIPAddressSku": {
      "type": "object",
      "description": "Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.",
      "properties": {
        "name": {
          "$ref": "#/$defs/PublicIPAddressSkuName",
          "description": "Specify public IP sku name"
        },
        "tier": {
          "$ref": "#/$defs/PublicIPAddressSkuTier",
          "description": "Specify public IP sku tier"
        }
      }
    },
    "PublicIPAddressSkuName": {
      "type": "string",
      "description": "Specify public IP sku name",
      "enum": [
        "Basic",
        "Standard"
      ],
      "x-ms-enum": {
        "name": "PublicIPAddressSkuName",
        "modelAsString": true,
        "values": [
          {
            "name": "Basic",
            "value": "Basic"
          },
          {
            "name": "Standard",
            "value": "Standard"
          }
        ]
      }
    },
    "PublicIPAddressSkuTier": {
      "type": "string",
      "description": "Specify public IP sku tier",
      "enum": [
        "Regional",
        "Global"
      ],
      "x-ms-enum": {
        "name": "PublicIPAddressSkuTier",
        "modelAsString": true,
        "values": [
          {
            "name": "Regional",
            "value": "Regional"
          },
          {
            "name": "Global",
            "value": "Global"
          }
        ]
      }
    },
    "RebalanceBehavior": {
      "type": "string",
      "description": "Type of rebalance behavior that will be used for recreating virtual machines in the scale set across availability zones. Default and only supported value for now is CreateBeforeDelete.",
      "enum": [
        "CreateBeforeDelete"
      ],
      "x-ms-enum": {
        "name": "RebalanceBehavior",
        "modelAsString": true,
        "values": [
          {
            "name": "CreateBeforeDelete",
            "value": "CreateBeforeDelete"
          }
        ]
      }
    },
    "RebalanceStrategy": {
      "type": "string",
      "description": "Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set across availability zones. Default and only supported value for now is Recreate.",
      "enum": [
        "Recreate"
      ],
      "x-ms-enum": {
        "name": "RebalanceStrategy",
        "modelAsString": true,
        "values": [
          {
            "name": "Recreate",
            "value": "Recreate"
          }
        ]
      }
    },
    "ReimageRecoveryPolicy": {
      "type": "object",
      "description": "The configuration parameters used while performing reimage recovery.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether reimage recovery should be enabled. The default value is false."
        }
      }
    },
    "RepairAction": {
      "type": "string",
      "description": "Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace.",
      "enum": [
        "Replace",
        "Restart",
        "Reimage"
      ],
      "x-ms-enum": {
        "name": "RepairAction",
        "modelAsString": true,
        "values": [
          {
            "name": "Replace",
            "value": "Replace"
          },
          {
            "name": "Restart",
            "value": "Restart"
          },
          {
            "name": "Reimage",
            "value": "Reimage"
          }
        ]
      }
    },
    "ResiliencyPolicy": {
      "type": "object",
      "description": "Describes an resiliency policy - AutomaticZoneRebalancingPolicy, ResilientVMCreationPolicy, ResilientVMDeletionPolicy and OperationRecoverySettings (version > 2025-11-01).",
      "properties": {
        "resilientVMCreationPolicy": {
          "$ref": "#/$defs/ResilientVMCreationPolicy",
          "description": "The configuration parameters used while performing resilient VM creation."
        },
        "resilientVMDeletionPolicy": {
          "$ref": "#/$defs/ResilientVMDeletionPolicy",
          "description": "The configuration parameters used while performing resilient VM deletion."
        },
        "automaticZoneRebalancingPolicy": {
          "$ref": "#/$defs/AutomaticZoneRebalancingPolicy",
          "description": "The configuration parameters used while performing automatic AZ balancing."
        },
        "zoneAllocationPolicy": {
          "$ref": "#/$defs/ZoneAllocationPolicy",
          "description": "The configuration parameters used while performing zone allocation."
        },
        "operationRecoverySettings": {
          "$ref": "#/$defs/OperationRecoverySettings",
          "description": "The configuration parameters used for operation recovery settings."
        }
      }
    },
    "ResilientVMCreationPolicy": {
      "type": "object",
      "description": "The configuration parameters used while performing resilient VM creation.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether resilient VM creation should be enabled on the virtual machine scale set. The default value is false."
        }
      }
    },
    "ResilientVMDeletionPolicy": {
      "type": "object",
      "description": "The configuration parameters used while performing resilient VM deletion.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. The default value is false."
        }
      }
    },
    "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
    },
    "RestartRecoveryPolicy": {
      "type": "object",
      "description": "The configuration parameters used while performing restart recovery.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether restart recovery should be enabled. The default value is false."
        }
      }
    },
    "RollingUpgradePolicy": {
      "type": "object",
      "description": "The configuration parameters used while performing a rolling upgrade.",
      "properties": {
        "maxBatchInstancePercent": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.",
          "minimum": 5,
          "maximum": 100
        },
        "maxUnhealthyInstancePercent": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.",
          "minimum": 5,
          "maximum": 100
        },
        "maxUnhealthyUpgradedInstancePercent": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.",
          "maximum": 100
        },
        "pauseTimeBetweenBatches": {
          "type": "string",
          "description": "The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S)."
        },
        "enableCrossZoneUpgrade": {
          "type": "boolean",
          "description": "Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size."
        },
        "prioritizeUnhealthyInstances": {
          "type": "boolean",
          "description": "Upgrade all unhealthy instances in a scale set before any healthy instances."
        },
        "rollbackFailedInstancesOnPolicyBreach": {
          "type": "boolean",
          "description": "Rollback failed instances to previous model if the Rolling Upgrade policy is violated."
        },
        "maxSurge": {
          "type": "boolean",
          "description": "Create new virtual machines to upgrade the scale set, rather than updating the existing virtual machines. Existing virtual machines will be deleted once the new virtual machines are created for each batch."
        }
      }
    },
    "ScaleInPolicy": {
      "type": "object",
      "description": "Describes a scale-in policy for a virtual machine scale set.",
      "properties": {
        "rules": {
          "type": "array",
          "description": "The rules to be followed when scaling-in a virtual machine scale set. <br><br> Possible values are: <br><br> **Default** When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in. <br><br> **OldestVM** When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal. <br><br> **NewestVM** When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal. <br><br>",
          "items": {
            "$ref": "#/$defs/VirtualMachineScaleSetScaleInRules"
          }
        },
        "forceDeletion": {
          "type": "boolean",
          "description": "This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview)"
        },
        "prioritizeUnhealthyVMs": {
          "type": "boolean",
          "description": "This property allows you to prioritize the deletion of unhealthy and inactive VMs when a virtual machine scale set is being scaled-in.(Feature in Preview)"
        }
      }
    },
    "ScheduledEventsAdditionalPublishingTargets": {
      "type": "object",
      "properties": {
        "eventGridAndResourceGraph": {
          "$ref": "#/$defs/EventGridAndResourceGraph",
          "description": "The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting."
        }
      }
    },
    "ScheduledEventsPolicy": {
      "type": "object",
      "description": "Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations.",
      "properties": {
        "userInitiatedRedeploy": {
          "$ref": "#/$defs/UserInitiatedRedeploy",
          "description": "The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation."
        },
        "userInitiatedReboot": {
          "$ref": "#/$defs/UserInitiatedReboot",
          "description": "The configuration parameters used while creating userInitiatedReboot scheduled event setting creation."
        },
        "scheduledEventsAdditionalPublishingTargets": {
          "$ref": "#/$defs/ScheduledEventsAdditionalPublishingTargets",
          "description": "The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets."
        },
        "allInstancesDown": {
          "$ref": "#/$defs/AllInstancesDown",
          "description": "The configuration parameters used while creating AllInstancesDown scheduled event setting creation."
        }
      }
    },
    "ScheduledEventsProfile": {
      "type": "object",
      "properties": {
        "terminateNotificationProfile": {
          "$ref": "#/$defs/TerminateNotificationProfile",
          "description": "Specifies Terminate Scheduled Event related configurations."
        },
        "osImageNotificationProfile": {
          "$ref": "#/$defs/OSImageNotificationProfile",
          "description": "Specifies OS Image Scheduled Event related configurations."
        }
      }
    },
    "SecurityEncryptionTypes": {
      "type": "string",
      "description": "Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. **Note:** It can be set for only Confidential VMs.",
      "enum": [
        "VMGuestStateOnly",
        "DiskWithVMGuestState",
        "NonPersistedTPM"
      ],
      "x-ms-enum": {
        "name": "SecurityEncryptionTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "VMGuestStateOnly",
            "value": "VMGuestStateOnly"
          },
          {
            "name": "DiskWithVMGuestState",
            "value": "DiskWithVMGuestState"
          },
          {
            "name": "NonPersistedTPM",
            "value": "NonPersistedTPM"
          }
        ]
      }
    },
    "SecurityPostureReference": {
      "type": "object",
      "description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01",
      "properties": {
        "id": {
          "type": "string",
          "description": "The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest"
        },
        "excludeExtensions": {
          "type": "array",
          "description": "The list of virtual machine extension names to exclude when applying the security posture.",
          "items": {
            "type": "string"
          }
        },
        "isOverridable": {
          "type": "boolean",
          "description": "Whether the security posture can be overridden by the user."
        }
      },
      "required": [
        "id"
      ]
    },
    "SecurityProfile": {
      "type": "object",
      "description": "Specifies the Security profile settings for the virtual machine or virtual machine scale set.",
      "properties": {
        "uefiSettings": {
          "$ref": "#/$defs/UefiSettings",
          "description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01."
        },
        "encryptionAtHost": {
          "type": "boolean",
          "description": "This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource."
        },
        "securityType": {
          "$ref": "#/$defs/SecurityTypes",
          "description": "Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set and is not Standard. If not specified, Standard will be returned starting api version 2025-11-01."
        },
        "encryptionIdentity": {
          "$ref": "#/$defs/EncryptionIdentity",
          "description": "Specifies the Managed Identity used by ADE to get access token for keyvault operations."
        },
        "proxyAgentSettings": {
          "$ref": "#/$defs/ProxyAgentSettings",
          "description": "Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01."
        }
      }
    },
    "SecurityTypes": {
      "type": "string",
      "description": "Specifies the VM securityType; UefiSettings are enabled only when set to TrustedLaunch or ConfidentialVM, and returns a Standard value starting API version 2025-11-01.",
      "enum": [
        "Standard",
        "TrustedLaunch",
        "ConfidentialVM"
      ],
      "x-ms-enum": {
        "name": "SecurityTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard",
            "value": "Standard",
            "description": "Indicates a VM without UEFI features such as SecureBoot or vTPM; returned as the default value when securityType is not specified."
          },
          {
            "name": "TrustedLaunch",
            "value": "TrustedLaunch"
          },
          {
            "name": "ConfidentialVM",
            "value": "ConfidentialVM"
          }
        ]
      }
    },
    "ServiceArtifactReference": {
      "type": "object",
      "description": "Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01",
      "properties": {
        "id": {
          "type": "string",
          "description": "The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}"
        }
      }
    },
    "SettingNames": {
      "type": "string",
      "description": "Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.",
      "enum": [
        "AutoLogon",
        "FirstLogonCommands"
      ],
      "x-ms-enum": {
        "name": "SettingNames",
        "modelAsString": false
      }
    },
    "Sku": {
      "type": "object",
      "description": "Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The sku name."
        },
        "tier": {
          "type": "string",
          "description": "Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**"
        },
        "capacity": {
          "type": "integer",
          "format": "int64",
          "description": "Specifies the number of virtual machines in the scale set."
        }
      }
    },
    "SkuProfile": {
      "type": "object",
      "description": "Specifies the sku profile for the virtual machine scale set. With this property the customer is able to specify a list of VM sizes and an allocation strategy.",
      "properties": {
        "vmSizes": {
          "type": "array",
          "description": "Specifies the VM sizes for the virtual machine scale set.",
          "items": {
            "$ref": "#/$defs/SkuProfileVMSize"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "allocationStrategy": {
          "$ref": "#/$defs/AllocationStrategy",
          "description": "Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated."
        },
        "automaticSkuMigrationPolicy": {
          "$ref": "#/$defs/AutomaticSkuMigrationPolicy",
          "description": "Specifies the policy that controls whether the platform may automatically migrate scale set instances to a different VM size from the SKU profile depending on platform demands. When omitted, automatic SKU migration is disabled."
        }
      }
    },
    "SkuProfileVMSize": {
      "type": "object",
      "description": "Specifies the VM Size.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Specifies the name of the VM Size."
        },
        "rank": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the rank (a.k.a priority) associated with the VM Size."
        }
      }
    },
    "SpotRestorePolicy": {
      "type": "object",
      "description": "Specifies the Spot-Try-Restore properties for the virtual machine scale set. With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints"
        },
        "restoreTimeout": {
          "type": "string",
          "description": "Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances"
        }
      }
    },
    "SshConfiguration": {
      "type": "object",
      "description": "SSH configuration for Linux based VMs running on Azure",
      "properties": {
        "publicKeys": {
          "type": "array",
          "description": "The list of SSH public keys used to authenticate with linux based VMs.",
          "items": {
            "$ref": "#/$defs/SshPublicKey"
          },
          "x-ms-identifiers": [
            "path"
          ]
        }
      }
    },
    "SshPublicKey": {
      "type": "object",
      "description": "Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.",
      "properties": {
        "path": {
          "type": "string",
          "description": "Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys"
        },
        "keyData": {
          "type": "string",
          "description": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)."
        }
      }
    },
    "StartRecoveryPolicy": {
      "type": "object",
      "description": "The configuration parameters used while performing start recovery.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether start recovery should be enabled. The default value is false."
        }
      }
    },
    "StorageAccountTypes": {
      "type": "string",
      "description": "Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS can only be used with data disks. It cannot be used with OS Disk. Standard_LRS uses Standard HDD. StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. Premium_ZRS uses Premium SSD zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant storage. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for Linux Virtual Machines, refer to https://docs.microsoft.com/azure/virtual-machines/linux/disks-types",
      "enum": [
        "Standard_LRS",
        "Premium_LRS",
        "StandardSSD_LRS",
        "UltraSSD_LRS",
        "Premium_ZRS",
        "StandardSSD_ZRS",
        "PremiumV2_LRS"
      ],
      "x-ms-enum": {
        "name": "StorageAccountTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard_LRS",
            "value": "Standard_LRS"
          },
          {
            "name": "Premium_LRS",
            "value": "Premium_LRS"
          },
          {
            "name": "StandardSSD_LRS",
            "value": "StandardSSD_LRS"
          },
          {
            "name": "UltraSSD_LRS",
            "value": "UltraSSD_LRS"
          },
          {
            "name": "Premium_ZRS",
            "value": "Premium_ZRS"
          },
          {
            "name": "StandardSSD_ZRS",
            "value": "StandardSSD_ZRS"
          },
          {
            "name": "PremiumV2_LRS",
            "value": "PremiumV2_LRS"
          }
        ]
      }
    },
    "StorageFaultDomainAlignmentType": {
      "type": "string",
      "description": "Specifies the storage fault domain alignment type for the disk.",
      "enum": [
        "Aligned",
        "BestEffortAligned"
      ],
      "x-ms-enum": {
        "name": "StorageFaultDomainAlignmentType",
        "modelAsString": true,
        "values": [
          {
            "name": "Aligned",
            "value": "Aligned",
            "description": "Disk Storage Fault Domains are mapped to Compute Fault Domains. Deployment fails if disk does not support enough Fault Domains."
          },
          {
            "name": "BestEffortAligned",
            "value": "BestEffortAligned",
            "description": "Attempt to map Storage Fault Domains to Compute Fault Domains. Disks are unaligned if disk does not support enough Fault Domains."
          }
        ]
      }
    },
    "SubResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource Id"
        }
      }
    },
    "SubResourceReadOnly": {
      "type": "object",
      "properties": {
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "Resource Id"
        }
      }
    },
    "TerminateNotificationProfile": {
      "type": "object",
      "properties": {
        "notBeforeTimeout": {
          "type": "string",
          "description": "Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M)"
        },
        "enable": {
          "type": "boolean",
          "description": "Specifies whether the Terminate Scheduled event is enabled or disabled."
        }
      }
    },
    "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"
        }
      ]
    },
    "UefiSettings": {
      "type": "object",
      "description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01.",
      "properties": {
        "secureBootEnabled": {
          "type": "boolean",
          "description": "Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01."
        },
        "vTpmEnabled": {
          "type": "boolean",
          "description": "Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01."
        }
      }
    },
    "UpgradeMode": {
      "type": "string",
      "description": "Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You  control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are  automatically updated at the same time.",
      "enum": [
        "Automatic",
        "Manual",
        "Rolling"
      ],
      "x-ms-enum": {
        "name": "UpgradeMode",
        "modelAsString": false
      }
    },
    "UpgradePolicy": {
      "type": "object",
      "description": "Describes an upgrade policy - automatic, manual, or rolling.",
      "properties": {
        "mode": {
          "$ref": "#/$defs/UpgradeMode",
          "description": "Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You  control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are  automatically updated at the same time."
        },
        "rollingUpgradePolicy": {
          "$ref": "#/$defs/RollingUpgradePolicy",
          "description": "The configuration parameters used while performing a rolling upgrade."
        },
        "automaticOSUpgradePolicy": {
          "$ref": "#/$defs/AutomaticOSUpgradePolicy",
          "description": "Configuration parameters used for performing automatic OS Upgrade."
        }
      }
    },
    "UserInitiatedReboot": {
      "type": "object",
      "description": "Specifies Reboot related Scheduled Event related configurations.",
      "properties": {
        "automaticallyApprove": {
          "type": "boolean",
          "description": "Specifies Reboot Scheduled Event related configurations."
        }
      }
    },
    "UserInitiatedRedeploy": {
      "type": "object",
      "description": "Specifies Redeploy related Scheduled Event related configurations.",
      "properties": {
        "automaticallyApprove": {
          "type": "boolean",
          "description": "Specifies Redeploy Scheduled Event related configurations."
        }
      }
    },
    "VMDiskSecurityProfile": {
      "type": "object",
      "description": "Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs.",
      "properties": {
        "securityEncryptionType": {
          "$ref": "#/$defs/SecurityEncryptionTypes",
          "description": "Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. **Note:** It can be set for only Confidential VMs."
        },
        "diskEncryptionSet": {
          "$ref": "#/$defs/DiskEncryptionSetParameters",
          "description": "Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob."
        }
      }
    },
    "VMGalleryApplication": {
      "type": "object",
      "description": "Specifies the required information to reference a compute gallery application version",
      "properties": {
        "tags": {
          "type": "string",
          "description": "Optional, Specifies a passthrough value for more generic context."
        },
        "order": {
          "type": "integer",
          "format": "int32",
          "description": "Optional, Specifies the order in which the packages have to be installed"
        },
        "packageReferenceId": {
          "type": "string",
          "description": "Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}"
        },
        "configurationReference": {
          "type": "string",
          "description": "Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided"
        },
        "treatFailureAsDeploymentFailure": {
          "type": "boolean",
          "description": "Optional, If true, any failure for any operation in the VmApplication will fail the deployment"
        },
        "enableAutomaticUpgrade": {
          "type": "boolean",
          "description": "If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the VM/VMSS"
        }
      },
      "required": [
        "packageReferenceId"
      ]
    },
    "VMScaleSetLifecycleHookEventType": {
      "type": "string",
      "description": "Specifies the scenario for which the customer is interested in receiving virtual machine scale set lifecycle hook events.",
      "enum": [
        "UpgradeAutoOSScheduling",
        "UpgradeAutoOSRollingBatchStarting"
      ],
      "x-ms-enum": {
        "name": "VMScaleSetLifecycleHookEventType",
        "modelAsString": true,
        "values": [
          {
            "name": "UpgradeAutoOSScheduling",
            "value": "UpgradeAutoOSScheduling",
            "description": "Lifecycle hook event sent to the customer before an Auto OS Upgrade operation starts on the virtual machine scale set."
          },
          {
            "name": "UpgradeAutoOSRollingBatchStarting",
            "value": "UpgradeAutoOSRollingBatchStarting",
            "description": "Lifecycle hook event sent to the customer before upgrade starts on a batch of virtual machines belonging to a virtual machine scale set during an Auto OS Upgrade operation."
          }
        ]
      }
    },
    "VMSizeProperties": {
      "type": "object",
      "description": "Specifies VM Size Property settings on the virtual machine.",
      "properties": {
        "vCPUsAvailable": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)."
        },
        "vCPUsPerCore": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.**"
        }
      }
    },
    "VaultCertificate": {
      "type": "object",
      "description": "Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.",
      "properties": {
        "certificateUrl": {
          "type": "string",
          "description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br>  \"data\":\"<Base64-encoded-certificate>\",<br>  \"dataType\":\"pfx\",<br>  \"password\":\"<pfx-file-password>\"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)."
        },
        "certificateStore": {
          "type": "string",
          "description": "For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name &lt;UppercaseThumbprint&gt;.crt for the X509 certificate file and &lt;UppercaseThumbprint&gt;.prv for private key. Both of these files are .pem formatted."
        }
      }
    },
    "VaultSecretGroup": {
      "type": "object",
      "description": "Describes a set of certificates which are all in the same Key Vault.",
      "properties": {
        "sourceVault": {
          "$ref": "#/$defs/SubResource",
          "description": "The relative URL of the Key Vault containing all of the certificates in VaultCertificates."
        },
        "vaultCertificates": {
          "type": "array",
          "description": "The list of key vault references in SourceVault which contain certificates.",
          "items": {
            "$ref": "#/$defs/VaultCertificate"
          },
          "x-ms-identifiers": [
            "certificateUrl"
          ]
        }
      }
    },
    "VirtualHardDisk": {
      "type": "object",
      "description": "Describes the uri of a disk.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Specifies the virtual hard disk's uri."
        }
      }
    },
    "VirtualMachineEvictionPolicyTypes": {
      "type": "string",
      "description": "Specifies the eviction policy for the Azure Spot VM/VMSS",
      "enum": [
        "Deallocate",
        "Delete"
      ],
      "x-ms-enum": {
        "name": "VirtualMachineEvictionPolicyTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Deallocate",
            "value": "Deallocate"
          },
          {
            "name": "Delete",
            "value": "Delete"
          }
        ]
      }
    },
    "VirtualMachinePriorityTypes": {
      "type": "string",
      "description": "Specifies the priority for a standalone virtual machine or the virtual machines in the scale set.",
      "enum": [
        "Regular",
        "Low",
        "Spot",
        "SpotPlus"
      ],
      "x-ms-enum": {
        "name": "VirtualMachinePriorityTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Regular",
            "value": "Regular",
            "description": "Regular Priority for a standalone virtual machine or the virtual machines in the scale set.\nThis is the default priority and it will be used to deploy regular VM/VMSS."
          },
          {
            "name": "Low",
            "value": "Low",
            "description": "Low priority for a standalone virtual machine or the virtual machines in the scale set. Will be Deprecated, use Spot instead."
          },
          {
            "name": "Spot",
            "value": "Spot",
            "description": "Spot priority for a standalone virtual machine or the virtual machines in the scale set."
          },
          {
            "name": "SpotPlus",
            "value": "SpotPlus",
            "description": "SpotPlus priority for a standalone virtual machine or the virtual machines in the scale set.\nThis is an enum value that will be used to deploy Azure Spot Plus VM/VMSS, which is the next\ngeneration of Azure Spot VM/VMSS with more reliability and longer running time."
          }
        ]
      }
    },
    "VirtualMachineScaleSetDataDisk": {
      "type": "object",
      "description": "Describes a virtual machine scale set data disk.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The disk name."
        },
        "lun": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM."
        },
        "caching": {
          "$ref": "#/$defs/CachingTypes",
          "description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**"
        },
        "writeAcceleratorEnabled": {
          "type": "boolean",
          "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk."
        },
        "createOption": {
          "$ref": "#/$defs/DiskCreateOptionTypes",
          "description": "The create option."
        },
        "diskSizeGB": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023."
        },
        "storageFaultDomainAlignment": {
          "$ref": "#/$defs/StorageFaultDomainAlignmentType",
          "description": "Specifies the storage fault domain alignment type for the disk."
        },
        "managedDisk": {
          "$ref": "#/$defs/VirtualMachineScaleSetManagedDiskParameters",
          "description": "The managed disk parameters."
        },
        "diskIOPSReadWrite": {
          "type": "integer",
          "format": "int64",
          "description": "Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB."
        },
        "diskMBpsReadWrite": {
          "type": "integer",
          "format": "int64",
          "description": "Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB."
        },
        "deleteOption": {
          "$ref": "#/$defs/DiskDeleteOptionTypes",
          "description": "Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).<br><br> Possible values: <br><br> **Delete** If this value is used, the data disk is deleted when the VMSS Flex VM is deleted.<br><br> **Detach** If this value is used, the data disk is retained after VMSS Flex VM is deleted.<br><br> The default value is set to **Delete**."
        }
      },
      "required": [
        "lun",
        "createOption"
      ]
    },
    "VirtualMachineScaleSetExtension": {
      "type": "object",
      "description": "Describes a Virtual Machine Scale Set Extension.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Resource name"
        },
        "type": {
          "type": "string",
          "description": "Resource type",
          "readOnly": true
        },
        "properties": {
          "$ref": "#/$defs/VirtualMachineScaleSetExtensionProperties",
          "description": "Describes the properties of a Virtual Machine Scale Set Extension.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceReadOnly"
        }
      ]
    },
    "VirtualMachineScaleSetExtensionProfile": {
      "type": "object",
      "description": "Describes a virtual machine scale set extension profile.",
      "properties": {
        "extensions": {
          "type": "array",
          "description": "The virtual machine scale set child extension resources.",
          "items": {
            "$ref": "#/$defs/VirtualMachineScaleSetExtension"
          },
          "x-ms-identifiers": [
            "name",
            "id"
          ]
        },
        "extensionsTimeBudget": {
          "type": "string",
          "description": "Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01."
        }
      }
    },
    "VirtualMachineScaleSetExtensionProperties": {
      "type": "object",
      "description": "Describes the properties of a Virtual Machine Scale Set Extension.",
      "properties": {
        "forceUpdateTag": {
          "type": "string",
          "description": "If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed."
        },
        "publisher": {
          "type": "string",
          "description": "The name of the extension handler publisher."
        },
        "type": {
          "type": "string",
          "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"."
        },
        "typeHandlerVersion": {
          "type": "string",
          "description": "Specifies the Major.Minor version of the script handler. Customer is able to specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series."
        },
        "autoUpgradeMinorVersion": {
          "type": "boolean",
          "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true."
        },
        "enableAutomaticUpgrade": {
          "type": "boolean",
          "description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available."
        },
        "settings": {
          "description": "Json formatted public settings for the extension."
        },
        "protectedSettings": {
          "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all."
        },
        "provisioningState": {
          "type": "string",
          "description": "The provisioning state, which only appears in the response.",
          "readOnly": true
        },
        "provisionAfterExtensions": {
          "type": "array",
          "description": "Collection of extension names after which this extension needs to be provisioned.",
          "items": {
            "type": "string"
          }
        },
        "suppressFailures": {
          "type": "boolean",
          "description": "Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false."
        },
        "protectedSettingsFromKeyVault": {
          "$ref": "#/$defs/KeyVaultSecretReference",
          "description": "The extensions protected settings that are passed by reference, and consumed from key vault"
        }
      }
    },
    "VirtualMachineScaleSetHardwareProfile": {
      "type": "object",
      "description": "Specifies the hardware settings for the virtual machine scale set.",
      "properties": {
        "vmSizeProperties": {
          "$ref": "#/$defs/VMSizeProperties",
          "description": "Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details."
        },
        "processorMode": {
          "$ref": "#/$defs/ProcessorMode",
          "description": "Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VMSS without deallocation or reboot. Minimum api-version: 2026-04-01."
        }
      }
    },
    "VirtualMachineScaleSetIPConfiguration": {
      "type": "object",
      "description": "Describes a virtual machine scale set network profile's IP configuration.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The IP configuration name."
        },
        "properties": {
          "$ref": "#/$defs/VirtualMachineScaleSetIPConfigurationProperties",
          "description": "Describes a virtual machine scale set network profile's IP configuration properties.",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "name"
      ]
    },
    "VirtualMachineScaleSetIPConfigurationProperties": {
      "type": "object",
      "description": "Describes a virtual machine scale set network profile's IP configuration properties.",
      "properties": {
        "subnet": {
          "$ref": "#/$defs/ApiEntityReference",
          "description": "Specifies the identifier of the subnet."
        },
        "primary": {
          "type": "boolean",
          "description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface."
        },
        "publicIPAddressConfiguration": {
          "$ref": "#/$defs/VirtualMachineScaleSetPublicIPAddressConfiguration",
          "description": "The publicIPAddressConfiguration."
        },
        "privateIPAddressVersion": {
          "$ref": "#/$defs/IPVersion",
          "description": "Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'."
        },
        "privateIPAddressPrefixLength": {
          "type": "integer",
          "format": "int32",
          "description": "The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.",
          "minimum": 1,
          "maximum": 128
        },
        "applicationGatewayBackendAddressPools": {
          "type": "array",
          "description": "Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "applicationSecurityGroups": {
          "type": "array",
          "description": "Specifies an array of references to application security group.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "loadBalancerBackendAddressPools": {
          "type": "array",
          "description": "Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        },
        "loadBalancerInboundNatPools": {
          "type": "array",
          "description": "Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.",
          "items": {
            "$ref": "#/$defs/SubResource"
          }
        }
      }
    },
    "VirtualMachineScaleSetIdentity": {
      "type": "object",
      "description": "Identity for the virtual machine scale set.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of virtual machine scale set identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/Common.ResourceIdentityType",
          "description": "The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set."
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
          "additionalProperties": {
            "$ref": "#/$defs/Common.UserAssignedIdentitiesValue"
          }
        }
      }
    },
    "VirtualMachineScaleSetIpTag": {
      "type": "object",
      "description": "Contains the IP tag associated with the public IP address.",
      "properties": {
        "ipTagType": {
          "type": "string",
          "description": "IP tag type. Example: FirstPartyUsage."
        },
        "tag": {
          "type": "string",
          "description": "IP tag associated with the public IP. Example: SQL, Storage etc."
        },
        "firstPartyServiceTagId": {
          "type": "string",
          "format": "arm-id",
          "description": "The first party service tag resource identifier associated with the public IP address.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Network/firstPartyServiceTags"
              }
            ]
          }
        }
      }
    },
    "VirtualMachineScaleSetManagedDiskParameters": {
      "type": "object",
      "description": "Describes the parameters of a ScaleSet managed disk.",
      "properties": {
        "storageAccountType": {
          "$ref": "#/$defs/StorageAccountTypes",
          "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk."
        },
        "diskEncryptionSet": {
          "$ref": "#/$defs/DiskEncryptionSetParameters",
          "description": "Specifies the customer managed disk encryption set resource id for the managed disk."
        },
        "securityProfile": {
          "$ref": "#/$defs/VMDiskSecurityProfile",
          "description": "Specifies the security profile for the managed disk."
        },
        "additionalDiskProperties": {
          "$ref": "#/$defs/AdditionalDiskProperties",
          "description": "Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points."
        }
      }
    },
    "VirtualMachineScaleSetNetworkConfiguration": {
      "type": "object",
      "description": "Describes a virtual machine scale set network profile's network configurations.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The network configuration name."
        },
        "properties": {
          "$ref": "#/$defs/VirtualMachineScaleSetNetworkConfigurationProperties",
          "description": "Describes a virtual machine scale set network profile's IP configuration.",
          "x-ms-client-flatten": true
        },
        "tags": {
          "type": "object",
          "description": "Resource tags applied to the networkInterface address created by this NetworkInterfaceConfiguration",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "name"
      ]
    },
    "VirtualMachineScaleSetNetworkConfigurationDnsSettings": {
      "type": "object",
      "description": "Describes a virtual machines scale sets network configuration's DNS settings.",
      "properties": {
        "dnsServers": {
          "type": "array",
          "description": "List of DNS servers IP addresses",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "VirtualMachineScaleSetNetworkConfigurationProperties": {
      "type": "object",
      "description": "Describes a virtual machine scale set network profile's IP configuration.",
      "properties": {
        "primary": {
          "type": "boolean",
          "description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface."
        },
        "enableAcceleratedNetworking": {
          "type": "boolean",
          "description": "Specifies whether the network interface is accelerated networking-enabled."
        },
        "disableTcpStateTracking": {
          "type": "boolean",
          "description": "Specifies whether the network interface is disabled for tcp state tracking."
        },
        "enableFpga": {
          "type": "boolean",
          "description": "Specifies whether the network interface is FPGA networking-enabled."
        },
        "networkSecurityGroup": {
          "$ref": "#/$defs/SubResource",
          "description": "The network security group."
        },
        "dnsSettings": {
          "$ref": "#/$defs/VirtualMachineScaleSetNetworkConfigurationDnsSettings",
          "description": "The dns settings to be applied on the network interfaces."
        },
        "ipConfigurations": {
          "type": "array",
          "description": "Specifies the IP configurations of the network interface.",
          "items": {
            "$ref": "#/$defs/VirtualMachineScaleSetIPConfiguration"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "enableIPForwarding": {
          "type": "boolean",
          "description": "Whether IP forwarding enabled on this NIC."
        },
        "deleteOption": {
          "$ref": "#/$defs/DeleteOptions",
          "description": "Specify what happens to the network interface when the VM is deleted"
        },
        "auxiliaryMode": {
          "$ref": "#/$defs/NetworkInterfaceAuxiliaryMode",
          "description": "Specifies whether the Auxiliary mode is enabled for the Network Interface resource."
        },
        "auxiliarySku": {
          "$ref": "#/$defs/NetworkInterfaceAuxiliarySku",
          "description": "Specifies whether the Auxiliary sku is enabled for the Network Interface resource."
        }
      },
      "required": [
        "ipConfigurations"
      ]
    },
    "VirtualMachineScaleSetNetworkProfile": {
      "type": "object",
      "description": "Describes a virtual machine scale set network profile.",
      "properties": {
        "healthProbe": {
          "$ref": "#/$defs/ApiEntityReference",
          "description": "A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'."
        },
        "networkInterfaceConfigurations": {
          "type": "array",
          "description": "The list of network configurations.",
          "items": {
            "$ref": "#/$defs/VirtualMachineScaleSetNetworkConfiguration"
          },
          "x-ms-identifiers": []
        },
        "networkApiVersion": {
          "$ref": "#/$defs/NetworkApiVersion",
          "description": "specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'"
        },
        "interconnectGroupProfile": {
          "$ref": "#/$defs/InterconnectGroupProfile",
          "description": "Specifies the interconnect group profile to associate with the scale set. Minimum api-version: 2026-03-01."
        }
      }
    },
    "VirtualMachineScaleSetOSDisk": {
      "type": "object",
      "description": "Describes a virtual machine scale set operating system disk.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The disk name."
        },
        "caching": {
          "$ref": "#/$defs/CachingTypes",
          "description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**"
        },
        "writeAcceleratorEnabled": {
          "type": "boolean",
          "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk."
        },
        "createOption": {
          "$ref": "#/$defs/DiskCreateOptionTypes",
          "description": "Specifies how the virtual machines in the scale set should be created. The only allowed value is: **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you  also use the plan element previously described."
        },
        "diffDiskSettings": {
          "$ref": "#/$defs/DiffDiskSettings",
          "description": "Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set."
        },
        "diskSizeGB": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023."
        },
        "storageFaultDomainAlignment": {
          "$ref": "#/$defs/StorageFaultDomainAlignmentType",
          "description": "Specifies the storage fault domain alignment type for the disk."
        },
        "osType": {
          "$ref": "#/$defs/Common.OperatingSystemTypes",
          "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**"
        },
        "image": {
          "$ref": "#/$defs/VirtualHardDisk",
          "description": "Specifies information about the unmanaged user image to base the scale set on."
        },
        "vhdContainers": {
          "type": "array",
          "description": "Specifies the container urls that are used to store operating system disks for the scale set.",
          "items": {
            "type": "string"
          }
        },
        "managedDisk": {
          "$ref": "#/$defs/VirtualMachineScaleSetManagedDiskParameters",
          "description": "The managed disk parameters."
        },
        "deleteOption": {
          "$ref": "#/$defs/DiskDeleteOptionTypes",
          "description": "Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). <br><br> Possible values: <br><br> **Delete** If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.<br><br> **Detach** If this value is used, the OS disk is retained after VMSS Flex VM is deleted. <br><br> The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk."
        }
      },
      "required": [
        "createOption"
      ]
    },
    "VirtualMachineScaleSetOSProfile": {
      "type": "object",
      "description": "Describes a virtual machine scale set OS profile.",
      "properties": {
        "computerNamePrefix": {
          "type": "string",
          "description": "Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long."
        },
        "adminUsername": {
          "type": "string",
          "description": "Specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in \".\" <br><br> **Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\". <br><br> **Minimum-length (Linux):** 1  character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters"
        },
        "adminPassword": {
          "type": "string",
          "format": "password",
          "description": "Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_]) <br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)",
          "x-ms-secret": true
        },
        "customData": {
          "type": "string",
          "description": "Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)"
        },
        "windowsConfiguration": {
          "$ref": "#/$defs/WindowsConfiguration",
          "description": "Specifies Windows operating system settings on the virtual machine."
        },
        "linuxConfiguration": {
          "$ref": "#/$defs/LinuxConfiguration",
          "description": "Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros)."
        },
        "secrets": {
          "type": "array",
          "description": "Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).",
          "items": {
            "$ref": "#/$defs/VaultSecretGroup"
          },
          "x-ms-identifiers": [
            "sourceVault/id"
          ]
        },
        "allowExtensionOperations": {
          "type": "boolean",
          "description": "Specifies whether extension operations should be allowed on the virtual machine scale set. This may only be set to False when no extensions are present on the virtual machine scale set."
        },
        "requireGuestProvisionSignal": {
          "type": "boolean",
          "description": "Optional property which must either be set to True or omitted."
        }
      }
    },
    "VirtualMachineScaleSetProperties": {
      "type": "object",
      "description": "Describes the properties of a Virtual Machine Scale Set.",
      "properties": {
        "upgradePolicy": {
          "$ref": "#/$defs/UpgradePolicy",
          "description": "The upgrade policy."
        },
        "scheduledEventsPolicy": {
          "$ref": "#/$defs/ScheduledEventsPolicy",
          "description": "The ScheduledEventsPolicy."
        },
        "automaticRepairsPolicy": {
          "$ref": "#/$defs/AutomaticRepairsPolicy",
          "description": "Policy for automatic repairs."
        },
        "virtualMachineProfile": {
          "$ref": "#/$defs/VirtualMachineScaleSetVMProfile",
          "description": "The virtual machine profile."
        },
        "provisioningState": {
          "type": "string",
          "description": "The provisioning state, which only appears in the response.",
          "readOnly": true
        },
        "overprovision": {
          "type": "boolean",
          "description": "Specifies whether the Virtual Machine Scale Set should be overprovisioned."
        },
        "doNotRunExtensionsOnOverprovisionedVMs": {
          "type": "boolean",
          "description": "When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs."
        },
        "uniqueId": {
          "type": "string",
          "description": "Specifies the ID which uniquely identifies a Virtual Machine Scale Set.",
          "readOnly": true
        },
        "singlePlacementGroup": {
          "type": "boolean",
          "description": "When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true."
        },
        "zoneBalance": {
          "type": "boolean",
          "description": "Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set."
        },
        "platformFaultDomainCount": {
          "type": "integer",
          "format": "int32",
          "description": "Fault Domain count for each placement group."
        },
        "proximityPlacementGroup": {
          "$ref": "#/$defs/SubResource",
          "description": "Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. Minimum api-version: 2018-04-01."
        },
        "hostGroup": {
          "$ref": "#/$defs/SubResource",
          "description": "Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: 2020-06-01."
        },
        "additionalCapabilities": {
          "$ref": "#/$defs/AdditionalCapabilities",
          "description": "Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type."
        },
        "scaleInPolicy": {
          "$ref": "#/$defs/ScaleInPolicy",
          "description": "Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set."
        },
        "orchestrationMode": {
          "$ref": "#/$defs/OrchestrationMode",
          "description": "Specifies the orchestration mode for the virtual machine scale set."
        },
        "spotRestorePolicy": {
          "$ref": "#/$defs/SpotRestorePolicy",
          "description": "Specifies the Spot Restore properties for the virtual machine scale set."
        },
        "priorityMixPolicy": {
          "$ref": "#/$defs/PriorityMixPolicy",
          "description": "Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance."
        },
        "timeCreated": {
          "type": "string",
          "format": "date-time",
          "description": "Specifies the time at which the Virtual Machine Scale Set resource was created. Minimum api-version: 2021-11-01.",
          "readOnly": true
        },
        "constrainedMaximumCapacity": {
          "type": "boolean",
          "description": "Optional property which must either be set to True or omitted."
        },
        "resiliencyPolicy": {
          "$ref": "#/$defs/ResiliencyPolicy",
          "description": "Policy for Resiliency"
        },
        "zonalPlatformFaultDomainAlignMode": {
          "$ref": "#/$defs/ZonalPlatformFaultDomainAlignMode",
          "description": "Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count."
        },
        "skuProfile": {
          "$ref": "#/$defs/SkuProfile",
          "description": "Specifies the sku profile for the virtual machine scale set."
        },
        "highSpeedInterconnectPlacement": {
          "$ref": "#/$defs/HighSpeedInterconnectPlacement",
          "description": "Specifies the high speed interconnect placement for the virtual machine scale set."
        },
        "lifecycleHooksProfile": {
          "$ref": "#/$defs/LifecycleHooksProfile",
          "description": "Specifies the lifecycle hooks profile for the virtual machine scale set."
        },
        "externalHealthPolicy": {
          "$ref": "#/$defs/ExternalHealthPolicy",
          "description": "Specifies the external health policy for the virtual machine scale set."
        }
      }
    },
    "VirtualMachineScaleSetPublicIPAddressConfiguration": {
      "type": "object",
      "description": "Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration",
      "properties": {
        "name": {
          "type": "string",
          "description": "The publicIP address configuration name."
        },
        "properties": {
          "$ref": "#/$defs/VirtualMachineScaleSetPublicIPAddressConfigurationProperties",
          "description": "Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration",
          "x-ms-client-flatten": true
        },
        "sku": {
          "$ref": "#/$defs/PublicIPAddressSku",
          "description": "Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags applied to the publicIP address created by this PublicIPAddressConfiguration",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "name"
      ]
    },
    "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings": {
      "type": "object",
      "description": "Describes a virtual machines scale sets network configuration's DNS settings.",
      "properties": {
        "domainNameLabel": {
          "type": "string",
          "description": "The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created"
        },
        "domainNameLabelScope": {
          "$ref": "#/$defs/DomainNameLabelScopeTypes",
          "description": "The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created"
        }
      },
      "required": [
        "domainNameLabel"
      ]
    },
    "VirtualMachineScaleSetPublicIPAddressConfigurationProperties": {
      "type": "object",
      "description": "Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration",
      "properties": {
        "idleTimeoutInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The idle timeout of the public IP address."
        },
        "dnsSettings": {
          "$ref": "#/$defs/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings",
          "description": "The dns settings to be applied on the publicIP addresses ."
        },
        "ipTags": {
          "type": "array",
          "description": "The list of IP tags associated with the public IP address.",
          "items": {
            "$ref": "#/$defs/VirtualMachineScaleSetIpTag"
          },
          "x-ms-identifiers": []
        },
        "publicIPPrefix": {
          "$ref": "#/$defs/SubResource",
          "description": "The PublicIPPrefix from which to allocate publicIP addresses."
        },
        "publicIPAddressVersion": {
          "$ref": "#/$defs/IPVersion",
          "description": "Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'."
        },
        "deleteOption": {
          "$ref": "#/$defs/DeleteOptions",
          "description": "Specify what happens to the public IP when the VM is deleted"
        }
      }
    },
    "VirtualMachineScaleSetScaleInRules": {
      "type": "string",
      "enum": [
        "Default",
        "OldestVM",
        "NewestVM"
      ],
      "x-ms-enum": {
        "name": "VirtualMachineScaleSetScaleInRules",
        "modelAsString": true,
        "values": [
          {
            "name": "Default",
            "value": "Default"
          },
          {
            "name": "OldestVM",
            "value": "OldestVM"
          },
          {
            "name": "NewestVM",
            "value": "NewestVM"
          }
        ]
      }
    },
    "VirtualMachineScaleSetStorageProfile": {
      "type": "object",
      "description": "Describes a virtual machine scale set storage profile.",
      "properties": {
        "imageReference": {
          "$ref": "#/$defs/ImageReference",
          "description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations."
        },
        "osDisk": {
          "$ref": "#/$defs/VirtualMachineScaleSetOSDisk",
          "description": "Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview)."
        },
        "dataDisks": {
          "type": "array",
          "description": "Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).",
          "items": {
            "$ref": "#/$defs/VirtualMachineScaleSetDataDisk"
          },
          "x-ms-identifiers": [
            "name",
            "lun"
          ]
        },
        "diskControllerType": {
          "$ref": "#/$defs/DiskControllerTypes",
          "description": "Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01"
        },
        "diskApiVersion": {
          "$ref": "#/$defs/DiskApiVersion",
          "description": "Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\")."
        }
      }
    },
    "VirtualMachineScaleSetVMProfile": {
      "type": "object",
      "description": "Describes a virtual machine scale set virtual machine profile.",
      "properties": {
        "osProfile": {
          "$ref": "#/$defs/VirtualMachineScaleSetOSProfile",
          "description": "Specifies the operating system settings for the virtual machines in the scale set."
        },
        "storageProfile": {
          "$ref": "#/$defs/VirtualMachineScaleSetStorageProfile",
          "description": "Specifies the storage settings for the virtual machine disks."
        },
        "networkProfile": {
          "$ref": "#/$defs/VirtualMachineScaleSetNetworkProfile",
          "description": "Specifies properties of the network interfaces of the virtual machines in the scale set."
        },
        "securityProfile": {
          "$ref": "#/$defs/SecurityProfile",
          "description": "Specifies the Security related profile settings for the virtual machines in the scale set."
        },
        "diagnosticsProfile": {
          "$ref": "#/$defs/DiagnosticsProfile",
          "description": "Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15."
        },
        "extensionProfile": {
          "$ref": "#/$defs/VirtualMachineScaleSetExtensionProfile",
          "description": "Specifies a collection of settings for extensions installed on virtual machines in the scale set."
        },
        "licenseType": {
          "type": "string",
          "description": "Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> Minimum api-version: 2015-06-15"
        },
        "priority": {
          "$ref": "#/$defs/VirtualMachinePriorityTypes",
          "description": "Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview."
        },
        "evictionPolicy": {
          "$ref": "#/$defs/VirtualMachineEvictionPolicyTypes",
          "description": "Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview."
        },
        "billingProfile": {
          "$ref": "#/$defs/BillingProfile",
          "description": "Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01."
        },
        "scheduledEventsProfile": {
          "$ref": "#/$defs/ScheduledEventsProfile",
          "description": "Specifies Scheduled Event related configurations."
        },
        "userData": {
          "type": "string",
          "description": "UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01."
        },
        "capacityReservation": {
          "$ref": "#/$defs/CapacityReservationProfile",
          "description": "Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01."
        },
        "interconnectBlockProfile": {
          "$ref": "#/$defs/InterconnectBlockProfile",
          "description": "Specifies the Interconnect Block related details of a Scale Set. Minimum api-version: 2026-03-01."
        },
        "applicationProfile": {
          "$ref": "#/$defs/ApplicationProfile",
          "description": "Specifies the gallery applications that should be made available to the VM/VMSS"
        },
        "hardwareProfile": {
          "$ref": "#/$defs/VirtualMachineScaleSetHardwareProfile",
          "description": "Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01."
        },
        "serviceArtifactReference": {
          "$ref": "#/$defs/ServiceArtifactReference",
          "description": "Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01"
        },
        "securityPostureReference": {
          "$ref": "#/$defs/SecurityPostureReference",
          "description": "Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01"
        },
        "timeCreated": {
          "type": "string",
          "format": "date-time",
          "description": "Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile. Minimum API version for this property is 2023-09-01.",
          "readOnly": true
        }
      }
    },
    "WinRMConfiguration": {
      "type": "object",
      "description": "Describes Windows Remote Management configuration of the VM",
      "properties": {
        "listeners": {
          "type": "array",
          "description": "The list of Windows Remote Management listeners",
          "items": {
            "$ref": "#/$defs/WinRMListener"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "WinRMListener": {
      "type": "object",
      "description": "Describes Protocol and thumbprint of Windows Remote Management listener",
      "properties": {
        "protocol": {
          "$ref": "#/$defs/ProtocolTypes",
          "description": "Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**"
        },
        "certificateUrl": {
          "type": "string",
          "description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br>  \"data\":\"<Base64-encoded-certificate>\",<br>  \"dataType\":\"pfx\",<br>  \"password\":\"<pfx-file-password>\"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)."
        }
      }
    },
    "WindowsConfiguration": {
      "type": "object",
      "description": "Specifies Windows operating system settings on the virtual machine.",
      "properties": {
        "provisionVMAgent": {
          "type": "boolean",
          "description": "Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later."
        },
        "enableAutomaticUpdates": {
          "type": "boolean",
          "description": "Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning."
        },
        "timeZone": {
          "type": "string",
          "description": "Specifies the time zone of the virtual machine. e.g. \"Pacific Standard Time\". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones)."
        },
        "additionalUnattendContent": {
          "type": "array",
          "description": "Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.",
          "items": {
            "$ref": "#/$defs/AdditionalUnattendContent"
          },
          "x-ms-identifiers": []
        },
        "patchSettings": {
          "$ref": "#/$defs/PatchSettings",
          "description": "[Preview Feature] Specifies settings related to VM Guest Patching on Windows."
        },
        "winRM": {
          "$ref": "#/$defs/WinRMConfiguration",
          "description": "Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell."
        },
        "enableVMAgentPlatformUpdates": {
          "type": "boolean",
          "description": "Indicates whether VMAgent Platform Updates are enabled for the Windows Virtual Machine.",
          "readOnly": true
        }
      }
    },
    "WindowsPatchAssessmentMode": {
      "type": "string",
      "description": "Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.",
      "enum": [
        "ImageDefault",
        "AutomaticByPlatform"
      ],
      "x-ms-enum": {
        "name": "WindowsPatchAssessmentMode",
        "modelAsString": true,
        "values": [
          {
            "name": "ImageDefault",
            "value": "ImageDefault"
          },
          {
            "name": "AutomaticByPlatform",
            "value": "AutomaticByPlatform"
          }
        ]
      }
    },
    "WindowsVMGuestPatchAutomaticByPlatformRebootSetting": {
      "type": "string",
      "description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations.",
      "enum": [
        "Unknown",
        "IfRequired",
        "Never",
        "Always"
      ],
      "x-ms-enum": {
        "name": "WindowsVMGuestPatchAutomaticByPlatformRebootSetting",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown"
          },
          {
            "name": "IfRequired",
            "value": "IfRequired"
          },
          {
            "name": "Never",
            "value": "Never"
          },
          {
            "name": "Always",
            "value": "Always"
          }
        ]
      }
    },
    "WindowsVMGuestPatchAutomaticByPlatformSettings": {
      "type": "object",
      "description": "Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings.",
      "properties": {
        "rebootSetting": {
          "$ref": "#/$defs/WindowsVMGuestPatchAutomaticByPlatformRebootSetting",
          "description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations."
        },
        "bypassPlatformSafetyChecksOnUserSchedule": {
          "type": "boolean",
          "description": "Enables customer to schedule patching without accidental upgrades"
        }
      }
    },
    "WindowsVMGuestPatchMode": {
      "type": "string",
      "description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You  control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true",
      "enum": [
        "Manual",
        "AutomaticByOS",
        "AutomaticByPlatform"
      ],
      "x-ms-enum": {
        "name": "WindowsVMGuestPatchMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Manual",
            "value": "Manual"
          },
          {
            "name": "AutomaticByOS",
            "value": "AutomaticByOS"
          },
          {
            "name": "AutomaticByPlatform",
            "value": "AutomaticByPlatform"
          }
        ]
      }
    },
    "ZonalPlatformFaultDomainAlignMode": {
      "type": "string",
      "description": "Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count.",
      "enum": [
        "Aligned",
        "Unaligned",
        "BestEffortAligned"
      ],
      "x-ms-enum": {
        "name": "ZonalPlatformFaultDomainAlignMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Aligned",
            "value": "Aligned"
          },
          {
            "name": "Unaligned",
            "value": "Unaligned"
          },
          {
            "name": "BestEffortAligned",
            "value": "BestEffortAligned",
            "description": "Offload Alignment to VMSS. VMSS aligns disks that support enough Storage Fault Domains, while keeping others unaligned."
          }
        ]
      }
    },
    "ZoneAllocationPolicy": {
      "type": "object",
      "description": "The configuration parameters for zone allocation of a virtual machine scale set.",
      "properties": {
        "maxZoneCount": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum number of availability zones to use if the ZonePlacementPolicy is 'Auto'. If not specified, all availability zones will be used."
        },
        "maxInstancePercentPerZonePolicy": {
          "$ref": "#/$defs/MaxInstancePercentPerZonePolicy",
          "description": "The configuration parameters used to limit the number of virtual machines per availability zone in the virtual machine scale set."
        }
      }
    },
    "ZonePlacementPolicyType": {
      "type": "string",
      "description": "Specifies the policy for the resource's placement in an availability zone. Use **Auto** for Virtual Machines and Virtual Machine Scale Sets to let the system automatically select an availability zone during resource creation. **Any** remains supported for Virtual Machines for backward compatibility.",
      "enum": [
        "Any",
        "Auto"
      ],
      "x-ms-enum": {
        "name": "ZonePlacementPolicyType",
        "modelAsString": true,
        "values": [
          {
            "name": "Any",
            "value": "Any"
          },
          {
            "name": "Auto",
            "value": "Auto",
            "description": "Automatic zone placement for Virtual Machines and Virtual Machine Scale Sets."
          }
        ]
      }
    }
  }
}