Skip to main content

virtual_machine_scale_set_vms

Creates, updates, deletes, gets or lists a virtual_machine_scale_set_vms resource.

Overview

Namevirtual_machine_scale_set_vms
TypeResource
Idazure.compute.virtual_machine_scale_set_vms

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
additional_capabilitiestextfield from the properties object
availability_settextfield from the properties object
diagnostics_profiletextfield from the properties object
etagtextEtag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header to ensure optimistic updates.
hardware_profiletextfield from the properties object
identitytextIdentity for the virtual machine.
instanceIdtextThe virtual machine instance ID.
instance_idtextfield from the properties object
instance_viewtextfield from the properties object
latest_model_appliedtextfield from the properties object
license_typetextfield from the properties object
locationtextResource location
model_definition_appliedtextfield from the properties object
network_profiletextfield from the properties object
network_profile_configurationtextfield from the properties object
os_profiletextfield from the properties object
plantextSpecifies 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.
protection_policytextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourcestextThe virtual machine child extension resources.
security_profiletextfield from the properties object
skutextDescribes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.
storage_profiletextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
time_createdtextfield from the properties object
typetextResource type
user_datatextfield from the properties object
virtualMachineScaleSetNametextfield from the properties object
vmScaleSetNametextfield from the properties object
vm_idtextfield from the properties object
zonestextThe virtual machine zones.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameGets a virtual machine from a VM scale set.
get_instance_viewSELECTinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameGets the status of a virtual machine from a VM scale set.
listSELECTresourceGroupName, subscriptionId, virtualMachineScaleSetNameGets a list of all virtual machines in a VM scale sets.
deleteDELETEinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameDeletes a virtual machine from a VM scale set.
updateREPLACEinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameUpdates a virtual machine of a VM scale set.
approve_rolling_upgradeEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameApprove upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
attach_detach_data_disksEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameAttach and detach data disks to/from a virtual machine in a VM scale set.
deallocateEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameDeallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.
perform_maintenanceEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNamePerforms maintenance on a virtual machine in a VM scale set.
power_offEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNamePower off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges.
redeployEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameShuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
reimageEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameReimages (upgrade the operating system) a specific virtual machine in a VM scale set.
reimage_allEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameAllows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.
restartEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameRestarts a virtual machine in a VM scale set.
retrieve_boot_diagnostics_dataEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameThe operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.
run_commandEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetName, data__commandIdRun command on a virtual machine in a VM scale set.
simulate_evictionEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameThe operation to simulate the eviction of spot virtual machine in a VM scale set.
startEXECinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameStarts a virtual machine in a VM scale set.

SELECT examples

Gets a virtual machine from a VM scale set.

SELECT
id,
name,
additional_capabilities,
availability_set,
diagnostics_profile,
etag,
hardware_profile,
identity,
instanceId,
instance_id,
instance_view,
latest_model_applied,
license_type,
location,
model_definition_applied,
network_profile,
network_profile_configuration,
os_profile,
plan,
protection_policy,
provisioning_state,
resourceGroupName,
resources,
security_profile,
sku,
storage_profile,
subscriptionId,
tags,
time_created,
type,
user_data,
virtualMachineScaleSetName,
vmScaleSetName,
vm_id,
zones
FROM azure.compute.vw_virtual_machine_scale_set_vms
WHERE instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';

REPLACE example

Replaces all fields in the specified virtual_machine_scale_set_vms resource.

/*+ update */
REPLACE azure.compute.virtual_machine_scale_set_vms
SET
properties = '{{ properties }}',
plan = '{{ plan }}',
identity = '{{ identity }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';

DELETE example

Deletes the specified virtual_machine_scale_set_vms resource.

/*+ delete */
DELETE FROM azure.compute.virtual_machine_scale_set_vms
WHERE instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';