Skip to main content

virtual_machines

Overview

Namevirtual_machines
TypeResource
Idazure.compute.virtual_machines

Fields

NameDatatypeDescription
idstringResource Id
namestringResource name
etagstringEtag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates.
extendedLocationobjectThe complex type of the extended location.
identityobjectIdentity for the virtual machine.
locationstringResource location
managedBystringManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This property is used by platform for internal resource group delete optimization.
planobjectSpecifies 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.
propertiesobjectDescribes the properties of a Virtual Machine.
resourcesarrayThe virtual machine child extension resources.
tagsobjectResource tags
typestringResource type
zonesarrayThe virtual machine zones.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vmNameRetrieves information about the model view or the instance view of a virtual machine.
listSELECTresourceGroupName, subscriptionIdLists 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_by_locationSELECTlocation, subscriptionIdGets all the virtual machines under the specified subscription for the specified location.
create_or_updateINSERTresourceGroupName, subscriptionId, vmNameThe operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
deleteDELETEresourceGroupName, subscriptionId, vmNameThe operation to delete a virtual machine.
_listEXECresourceGroupName, subscriptionIdLists 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_by_locationEXEClocation, subscriptionIdGets all the virtual machines under the specified subscription for the specified location.