Virtual Machines REST API

This table lists the operations included in the Virtual Machines REST API.

Operation REST Verb Description
Create or update a virtual machine PUT Creates a virtual machine.
Delete a virtual machine DELETE Deletes a virtual machine.
Generalize a virtual machine POST Marks a virtual machine as generalized.
Get information about a virtual machine GET Gets information about a virtual machine.
List the virtual machines in a resource group GET Gets a list of virtual machines in a resource group.
List available virtual machine sizes in an availability set GET Gets a list of virtual machines in an availability set.
List available virtual machine sizes for resizing GET Gets a list of virtual machine sizes available for resizing.
Lists available virtual machine sizes for a subscription GET Gets a list of virtual machine sizes available in a region.
Lists the virtual machines in a subscription GET Gets a list of virtual machine sizes available in a subscription.
Restart a virtual machine POST Restarts a virtual machine.
Save an image of a virtual machine POST Saves an image of a virtual machine.
Start a virtual machine POST Starts a stopped virtual machine.
Stop a virtual machine POST Stops a running virtual machine.
Stop and deallocate a virtual machine POST Stops and deallocates a running virtual machine.