Azure Virtual Machines · Schema
VirtualMachineUpdate
Describes a Virtual Machine Update.
Cloud ComputingComputeInfrastructure-as-a-ServiceInfrastructureVirtual Machines
Properties
| Name | Type | Description |
|---|---|---|
| tags | object | Resource tags |
| plan | object | 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 ena |
| properties | object | Describes the properties of a Virtual Machine. |
| identity | object | The identity of the virtual machine, if configured. |
| zones | array | The virtual machine zones. |
JSON Schema
{
"$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-update-schema.json",
"title": "VirtualMachineUpdate",
"description": "Describes a Virtual Machine Update.",
"x-generated": "2026-11-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/microsoft-azure-virtual-machines-virtual-machines-api-openapi.yml#/components/schemas/VirtualMachineUpdate",
"type": "object",
"properties": {
"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/VirtualMachineProperties",
"description": "Describes the properties of a Virtual Machine.",
"x-ms-client-flatten": true
},
"identity": {
"$ref": "#/$defs/VirtualMachineIdentity",
"description": "The identity of the virtual machine, if configured."
},
"zones": {
"type": "array",
"description": "The virtual machine zones.",
"items": {
"type": "string"
}
}
},
"allOf": [
{
"$ref": "#/$defs/UpdateResource"
}
],
"$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"
}
}
},
"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}/..."
}
}
},
"ApiError": {
"type": "object",
"properties": {
"details": {
"type": "array",
"items": {
"$ref": "#/$defs/ApiErrorBase"
},
"x-ms-identifiers": [
"message",
"target"
],
"description": "The Api error details"
},
"innererror": {
"$ref": "#/$defs/InnerError",
"description": "The Api inner error"
},
"code": {
"type": "string",
"description": "The error code."
},
"target": {
"type": "string",
"description": "The target of the particular error."
},
"message": {
"type": "string",
"description": "The error message."
}
},
"description": "Api error."
},
"ApiErrorBase": {
"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
},
"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"
]
}
}
},
"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."
}
]
}
},
"AvailablePatchSummary": {
"type": "object",
"description": "Describes the properties of an virtual machine instance view for available patch summary.",
"properties": {
"status": {
"$ref": "#/$defs/PatchOperationStatus",
"description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Unknown\", \"Failed\", \"Succeeded\", or \"CompletedWithWarnings.\"",
"readOnly": true
},
"assessmentActivityId": {
"type": "string",
"description": "The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.",
"readOnly": true
},
"rebootPending": {
"type": "boolean",
"description": "The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred.",
"readOnly": true
},
"criticalAndSecurityPatchCount": {
"type": "integer",
"format": "int32",
"description": "The number of critical or security patches that have been detected as available and not yet installed.",
"readOnly": true
},
"otherPatchCount": {
"type": "integer",
"format": "int32",
"description": "The number of all available patches excluding critical and security.",
"readOnly": true
},
"startTime": {
"type": "string",
"format": "date-time",
"description": "The UTC timestamp when the operation began.",
"readOnly": true
},
"lastModifiedTime": {
"type": "string",
"format": "date-time",
"description": "The UTC timestamp when the operation began.",
"readOnly": true
},
"error": {
"$ref": "#/$defs/ApiError",
"description": "The errors that were encountered during execution of the operation. The details array contains the list of them.",
"readOnly": true
}
}
},
"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."
}
}
},
"BootDiagnosticsInstanceView": {
"type": "object",
"description": "The instance view of a virtual machine boot diagnostics.",
"properties": {
"consoleScreenshotBlobUri": {
"type": "string",
"description": "The console screenshot blob URI. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage.",
"readOnly": true
},
"serialConsoleLogBlobUri": {
"type": "string",
"description": "The serial console log blob Uri. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage.",
"readOnly": true
},
"status": {
"$ref": "#/$defs/InstanceViewStatus",
"description": "The boot diagnostics status information for the VM. **Note:** It will be set only if there are errors encountered in enabling boot diagnostics.",
"readOnly": true
}
}
},
"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."
}
}
},
"CapacityReservationType": {
"type": "string",
"description": "Specifies which type of capacity reservation the virtual machine will consume capacity from if eligible or whether it is explicitly opted out from being associated and consuming capacity from any reserved capacity available in the subscription. Minimum api-version: 2026-04-01.",
"enum": [
"NotEligible",
"Targeted",
"Open",
"Disabled",
"Block"
],
"x-ms-enum": {
"name": "CapacityReservationType",
"modelAsString": true,
"values": [
{
"name": "NotEligible",
"value": "NotEligible",
"description": "The virtual machine is not eligible to be implicitly associated with an open capacity reservation and is not explicitly associated with any capacity reservation group, so it will consume capacity from the publicly available capacity."
},
{
"name": "Targeted",
"value": "Targeted",
"description": "The virtual machine will consume capacity from a specific matching capacity reservation when associated with a capacity reservation group resource of type targeted, but can fall back to consume capacity from the publicly available capacity if there is no capacity available in the targeted reservation."
},
{
"name": "Open",
"value": "Open",
"description": "The virtual machine if eligible will implicitly associate and consume any available capacity from a matching open capacity reservation created or shared in the subscription. **Note:** The VM should not be explicitly associated with the open capacity reservation group resource containing the matching reservation."
},
{
"name": "Disabled",
"value": "Disabled",
"description": "The virtual machine has capacity reservation assignment disabled and will not be allowed to implicitly or explicitly associate with any type of capacity reservation."
},
{
"name": "Block",
"value": "Block",
"description": "The virtual machine consumes capacity from a specific matching capacity reservation when associated with a capacity reservation group resource of type block, and will hit capacity failures if there is no available capacity in the block reservation."
}
]
}
},
"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
}
},
"DataDisk": {
"type": "object",
"description": "Describes a data disk.",
"properties": {
"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."
},
"name": {
"type": "string",
"description": "The disk name."
},
"vhd": {
"$ref": "#/$defs/VirtualHardDisk",
"description": "The virtual hard disk."
},
"image": {
"$ref": "#/$defs/VirtualHardDisk",
"description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist."
},
"caching": {
"$ref": "#/$defs/CachingTypes",
"description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **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 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 data disk. 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."
},
"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/ManagedDiskParameters",
"description": "The managed disk parameters."
},
"sourceResource": {
"$ref": "#/$defs/ApiEntityReference",
"description": "The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk."
},
"toBeDetached": {
"type": "boolean",
"description": "Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset"
},
"diskIOPSReadWrite": {
"type": "integer",
"format": "int64",
"description": "Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS."
},
"diskMBpsReadWrite": {
"type": "integer",
"format": "int64",
"description": "Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS."
},
"detachOption": {
"$ref": "#/$defs/DiskDetachOptionTypes",
"description": "Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'."
},
"deleteOption": {
"$ref": "#/$defs/DiskDeleteOptionTypes",
"description": "Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**."
}
},
"required": [
"lun",
"createOption"
]
},
"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"
}
]
}
},
"DiskDetachOptionTypes": {
"type": "string",
"description": "Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.",
"enum": [
"ForceDetach"
],
"x-ms-enum": {
# --- truncated at 32 KB (171 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-virtual-machine-update-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-virtual-machines-virtual-machine-update"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.