Azure Virtual Machines · Schema
VirtualMachine
Describes a Virtual Machine.
Cloud ComputingComputeInfrastructure-as-a-ServiceInfrastructureVirtual Machines
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Resource Id. |
| name | string | Resource name. |
| type | string | Resource type. |
| location | string | Resource location. |
| tags | object | Resource tags. |
| properties | object | |
| zones | array | The virtual machine zones. |
| identity | object | |
| plan | object |
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-schema.json",
"title": "VirtualMachine",
"description": "Describes a Virtual Machine.",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/_superseded/microsoft-azure-virtual-machines-virtual-machines-api-openapi.yml#/components/schemas/VirtualMachine",
"type": "object",
"required": [
"location"
],
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Resource Id."
},
"name": {
"type": "string",
"readOnly": true,
"description": "Resource name."
},
"type": {
"type": "string",
"readOnly": true,
"description": "Resource type."
},
"location": {
"type": "string",
"description": "Resource location."
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Resource tags."
},
"properties": {
"$ref": "#/$defs/VirtualMachineProperties"
},
"zones": {
"type": "array",
"items": {
"type": "string"
},
"description": "The virtual machine zones."
},
"identity": {
"$ref": "#/$defs/VirtualMachineIdentity"
},
"plan": {
"$ref": "#/$defs/Plan"
}
},
"$defs": {
"DataDisk": {
"type": "object",
"description": "Describes a data disk.",
"required": [
"lun",
"createOption"
],
"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."
},
"name": {
"type": "string",
"description": "The disk name."
},
"caching": {
"type": "string",
"description": "Specifies the caching requirements.",
"enum": [
"None",
"ReadOnly",
"ReadWrite"
]
},
"createOption": {
"type": "string",
"description": "Specifies how the virtual machine disk should be created.",
"enum": [
"FromImage",
"Empty",
"Attach",
"Copy",
"Restore"
]
},
"diskSizeGB": {
"type": "integer",
"format": "int32",
"description": "Specifies the size of an empty data disk in gigabytes."
},
"managedDisk": {
"$ref": "#/$defs/ManagedDiskParameters"
},
"deleteOption": {
"type": "string",
"description": "Specifies whether data disk should be deleted or detached upon VM deletion.",
"enum": [
"Delete",
"Detach"
]
}
}
},
"DiagnosticsProfile": {
"type": "object",
"description": "Specifies the boot diagnostic settings state.",
"properties": {
"bootDiagnostics": {
"type": "object",
"description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether boot diagnostics should be enabled on the Virtual Machine."
},
"storageUri": {
"type": "string",
"format": "uri",
"description": "URI of the storage account to use for placing the console output and screenshot."
}
}
}
}
},
"HardwareProfile": {
"type": "object",
"description": "Specifies the hardware settings for the virtual machine.",
"properties": {
"vmSize": {
"type": "string",
"description": "Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using the List all available virtual machine sizes in an availability set, List all available virtual machine sizes in a region, or List all available virtual machine sizes for resizing APIs."
}
}
},
"ImageReference": {
"type": "object",
"description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images.",
"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."
},
"exactVersion": {
"type": "string",
"readOnly": true,
"description": "Specifies in decimal numbers the version of platform image or marketplace image used to create the virtual machine."
},
"id": {
"type": "string",
"description": "Resource Id."
}
}
},
"LinuxConfiguration": {
"type": "object",
"description": "Specifies the Linux operating system settings on the virtual machine.",
"properties": {
"disablePasswordAuthentication": {
"type": "boolean",
"description": "Specifies whether password authentication should be disabled."
},
"ssh": {
"type": "object",
"description": "Specifies the ssh key configuration for a Linux OS.",
"properties": {
"publicKeys": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Specifies the full path on the created VM where ssh public key is stored."
},
"keyData": {
"type": "string",
"description": "SSH public key certificate used to authenticate with the VM through ssh."
}
}
}
}
}
},
"provisionVMAgent": {
"type": "boolean",
"description": "Indicates whether virtual machine agent should be provisioned on the virtual machine."
},
"patchSettings": {
"$ref": "#/$defs/LinuxPatchSettings"
}
}
},
"LinuxPatchSettings": {
"type": "object",
"description": "Specifies settings related to VM Guest Patching on Linux.",
"properties": {
"patchMode": {
"type": "string",
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine.",
"enum": [
"ImageDefault",
"AutomaticByPlatform"
]
},
"assessmentMode": {
"type": "string",
"description": "Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.",
"enum": [
"ImageDefault",
"AutomaticByPlatform"
]
}
}
},
"ManagedDiskParameters": {
"type": "object",
"description": "The parameters of a managed disk.",
"properties": {
"id": {
"type": "string",
"description": "Resource Id."
},
"storageAccountType": {
"type": "string",
"description": "Specifies the storage account type for the managed disk.",
"enum": [
"Premium_LRS",
"Premium_ZRS",
"Standard_LRS",
"StandardSSD_LRS",
"StandardSSD_ZRS",
"UltraSSD_LRS",
"PremiumV2_LRS"
]
}
}
},
"NetworkInterfaceReference": {
"type": "object",
"description": "Describes a network interface reference.",
"properties": {
"id": {
"type": "string",
"description": "Resource Id."
},
"properties": {
"type": "object",
"properties": {
"primary": {
"type": "boolean",
"description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface."
},
"deleteOption": {
"type": "string",
"description": "Specify what happens to the network interface when the VM is deleted.",
"enum": [
"Delete",
"Detach"
]
}
}
}
}
},
"NetworkProfile": {
"type": "object",
"description": "Specifies the network interfaces or the networking configuration of the virtual machine.",
"properties": {
"networkInterfaces": {
"type": "array",
"items": {
"$ref": "#/$defs/NetworkInterfaceReference"
},
"description": "Specifies the list of resource IDs for the network interfaces associated with the virtual machine."
}
}
},
"OSDisk": {
"type": "object",
"description": "Specifies information about the operating system disk used by the virtual machine.",
"required": [
"createOption"
],
"properties": {
"osType": {
"type": "string",
"description": "This property allows you to specify the type of the OS that is included in the disk.",
"enum": [
"Windows",
"Linux"
]
},
"name": {
"type": "string",
"description": "The disk name."
},
"caching": {
"type": "string",
"description": "Specifies the caching requirements.",
"enum": [
"None",
"ReadOnly",
"ReadWrite"
]
},
"createOption": {
"type": "string",
"description": "Specifies how the virtual machine disk should be created.",
"enum": [
"FromImage",
"Empty",
"Attach",
"Copy",
"Restore"
]
},
"diskSizeGB": {
"type": "integer",
"format": "int32",
"description": "Specifies the size of an empty data disk in gigabytes."
},
"managedDisk": {
"$ref": "#/$defs/ManagedDiskParameters"
},
"deleteOption": {
"type": "string",
"description": "Specifies whether OS disk should be deleted or detached upon VM deletion.",
"enum": [
"Delete",
"Detach"
]
}
}
},
"OSProfile": {
"type": "object",
"description": "Specifies the operating system settings for the virtual machine.",
"properties": {
"computerName": {
"type": "string",
"description": "Specifies the host OS name of the virtual machine. Cannot be updated after the VM is created."
},
"adminUsername": {
"type": "string",
"description": "Specifies the name of the administrator account."
},
"adminPassword": {
"type": "string",
"format": "password",
"description": "Specifies the password of the administrator account. Write-only property."
},
"linuxConfiguration": {
"$ref": "#/$defs/LinuxConfiguration"
},
"windowsConfiguration": {
"$ref": "#/$defs/WindowsConfiguration"
}
}
},
"Plan": {
"type": "object",
"description": "Specifies information about the marketplace image used to create the virtual machine.",
"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."
},
"promotionCode": {
"type": "string",
"description": "The promotion code."
}
}
},
"StorageProfile": {
"type": "object",
"description": "Specifies the storage settings for the virtual machine disks.",
"properties": {
"imageReference": {
"$ref": "#/$defs/ImageReference"
},
"osDisk": {
"$ref": "#/$defs/OSDisk"
},
"dataDisks": {
"type": "array",
"items": {
"$ref": "#/$defs/DataDisk"
},
"description": "Specifies the parameters that are used to add a data disk to a virtual machine."
}
}
},
"SubResource": {
"type": "object",
"description": "Reference to a sub-resource.",
"properties": {
"id": {
"type": "string",
"description": "Resource Id."
}
}
},
"VirtualMachineIdentity": {
"type": "object",
"description": "Identity for the virtual machine.",
"properties": {
"principalId": {
"type": "string",
"readOnly": true,
"description": "The principal id of virtual machine identity."
},
"tenantId": {
"type": "string",
"readOnly": true,
"description": "The tenant id associated with the virtual machine."
},
"type": {
"type": "string",
"description": "The type of identity used for the virtual machine.",
"enum": [
"SystemAssigned",
"UserAssigned",
"SystemAssigned, UserAssigned",
"None"
]
}
}
},
"VirtualMachineProperties": {
"type": "object",
"description": "Describes the properties of a Virtual Machine.",
"properties": {
"vmId": {
"type": "string",
"readOnly": true,
"description": "Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS."
},
"hardwareProfile": {
"$ref": "#/$defs/HardwareProfile"
},
"storageProfile": {
"$ref": "#/$defs/StorageProfile"
},
"osProfile": {
"$ref": "#/$defs/OSProfile"
},
"networkProfile": {
"$ref": "#/$defs/NetworkProfile"
},
"diagnosticsProfile": {
"$ref": "#/$defs/DiagnosticsProfile"
},
"availabilitySet": {
"$ref": "#/$defs/SubResource"
},
"proximityPlacementGroup": {
"$ref": "#/$defs/SubResource"
},
"priority": {
"type": "string",
"description": "Specifies the priority for the virtual machine.",
"enum": [
"Regular",
"Low",
"Spot"
]
},
"evictionPolicy": {
"type": "string",
"description": "Specifies the eviction policy for the Azure Spot virtual machine.",
"enum": [
"Deallocate",
"Delete"
]
},
"provisioningState": {
"type": "string",
"readOnly": true,
"description": "The provisioning state."
},
"host": {
"$ref": "#/$defs/SubResource"
},
"hostGroup": {
"$ref": "#/$defs/SubResource"
},
"licenseType": {
"type": "string",
"description": "Specifies that the image or disk that is being used was licensed on-premises."
},
"capacityReservation": {
"type": "object",
"description": "Specifies information about the capacity reservation that is used to allocate the virtual machine.",
"properties": {
"capacityReservationGroup": {
"$ref": "#/$defs/SubResource"
}
}
},
"userData": {
"type": "string",
"description": "UserData for the VM, which must be base-64 encoded. The maximum size is 64 KB."
},
"timeCreated": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "Specifies the time at which the Virtual Machine resource was created."
}
}
},
"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."
},
"enableAutomaticUpdates": {
"type": "boolean",
"description": "Indicates whether Automatic Updates is enabled for the Windows virtual machine."
},
"timeZone": {
"type": "string",
"description": "Specifies the time zone of the virtual machine."
},
"patchSettings": {
"$ref": "#/$defs/WindowsPatchSettings"
}
}
},
"WindowsPatchSettings": {
"type": "object",
"description": "Specifies settings related to VM Guest Patching on Windows.",
"properties": {
"patchMode": {
"type": "string",
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine.",
"enum": [
"Manual",
"AutomaticByOS",
"AutomaticByPlatform"
]
},
"assessmentMode": {
"type": "string",
"description": "Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.",
"enum": [
"ImageDefault",
"AutomaticByPlatform"
]
},
"enableHotpatching": {
"type": "boolean",
"description": "Enables customers to patch their Azure VMs without requiring a reboot."
}
}
}
}
}
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"
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.