Virtual Machines

Operations

Assess Patches

Assess patches on the VM.

Capture

Captures 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 Disks

Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.

Create Or Update

The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.

Deallocate

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

Delete

The operation to delete a virtual machine.

Generalize

Sets 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.

Get

Retrieves information about the model view or the instance view of a virtual machine.

Instance View

Retrieves information about the run-time state of a virtual machine.

List

Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

List All

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

List Available Sizes

Lists all available virtual machine sizes to which the specified virtual machine can be resized.

List By Location

Gets all the virtual machines under the specified subscription for the specified location.

Perform Maintenance

The operation to perform maintenance on a virtual machine.

Power Off

The 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.

Reapply

The operation to reapply a virtual machine's state.

Redeploy

Shuts down the virtual machine, moves it to a new node, and powers it back on.

Reimage

Reimages the virtual machine which has an ephemeral OS disk back to its initial state.

Restart

The operation to restart a virtual machine.

Retrieve Boot Diagnostics Data

The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.

Simulate Eviction

The operation to simulate the eviction of spot virtual machine.

Start

The operation to start a virtual machine.

Update

The operation to update a virtual machine.