Skip to main content

virtual_machine

Overview

Namevirtual_machine
TypeResource
Idazure.compute.virtual_machine

Fields

NameDatatypeDescription
assignedHoststringResource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01.
bootDiagnosticsobjectThe instance view of a virtual machine boot diagnostics.
computerNamestringThe computer name assigned to the virtual machine.
disksarrayThe virtual machine disk information.
extensionsarrayThe extensions information.
hyperVGenerationstringSpecifies the HyperVGeneration Type associated with a resource
isVMInStandbyPoolboolean[Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool.
maintenanceRedeployStatusobjectMaintenance Operation Status.
osNamestringThe Operating System running on the virtual machine.
osVersionstringThe version of Operating System running on the virtual machine.
patchStatusobjectThe status of virtual machine patch operations.
platformFaultDomainintegerSpecifies the fault domain of the virtual machine.
platformUpdateDomainintegerSpecifies the update domain of the virtual machine.
rdpThumbPrintstringThe Remote desktop certificate thumbprint.
statusesarrayThe resource status information.
vmAgentobjectThe instance view of the VM Agent running on the virtual machine.
vmHealthobjectThe health status of the VM.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vmNameRetrieves information about the run-time state of a virtual machine.
assess_patchesEXECresourceGroupName, subscriptionId, vmNameAssess patches on the VM.
attach_detach_data_disksEXECresourceGroupName, subscriptionId, vmNameAttach and detach data disks to/from the virtual machine.
captureEXECresourceGroupName, subscriptionId, vmName, data__destinationContainerName, data__overwriteVhds, data__vhdPrefixCaptures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
convert_to_managed_disksEXECresourceGroupName, subscriptionId, vmNameConverts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
deallocateEXECresourceGroupName, subscriptionId, vmNameShuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
generalizeEXECresourceGroupName, subscriptionId, vmNameSets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to Create a managed image of a generalized VM in Azure. For Linux, please refer to How to create an image of a virtual machine or VHD.
install_patchesEXECresourceGroupName, subscriptionId, vmName, data__rebootSettingInstalls patches on the VM.
perform_maintenanceEXECresourceGroupName, subscriptionId, vmNameThe operation to perform maintenance on a virtual machine.
power_offEXECresourceGroupName, subscriptionId, vmNameThe operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
reapplyEXECresourceGroupName, subscriptionId, vmNameThe operation to reapply a virtual machine's state.
redeployEXECresourceGroupName, subscriptionId, vmNameShuts down the virtual machine, moves it to a new node, and powers it back on.
reimageEXECresourceGroupName, subscriptionId, vmNameReimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.
restartEXECresourceGroupName, subscriptionId, vmNameThe operation to restart a virtual machine.
retrieve_boot_diagnostics_dataEXECresourceGroupName, subscriptionId, vmNameThe operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
run_commandEXECresourceGroupName, subscriptionId, vmName, data__commandIdRun command on the VM.
simulate_evictionEXECresourceGroupName, subscriptionId, vmNameThe operation to simulate the eviction of spot virtual machine.
startEXECresourceGroupName, subscriptionId, vmNameThe operation to start a virtual machine.
updateEXECresourceGroupName, subscriptionId, vmNameThe operation to update a virtual machine.