Skip to main content

virtual_machines

Overview

Namevirtual_machines
TypeResource
Idazure.azurefleet.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.
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.
instance_viewEXECresourceGroupName, subscriptionId, vmNameRetrieves information about the run-time state of a virtual machine.
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.
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.