Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VirtualMachineScaleSetVMs

Package version

Class representing a VirtualMachineScaleSetVMs.

Hierarchy

  • VirtualMachineScaleSetVMs

Index

Constructors

constructor

Methods

beginDeallocate

  • beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Deallocates 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginDeleteMethod

  • beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Deletes a virtual machine from a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginPerformMaintenance

  • beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Performs maintenance on a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginPowerOff

  • beginPowerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Power 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginRedeploy

  • beginRedeploy(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Redeploys a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginReimage

  • beginReimage(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginReimageAll

  • beginReimageAll(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Allows 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginRestart

  • beginRestart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Restarts a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginStart

  • beginStart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Starts a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginUpdate

  • beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Updates a virtual machine of a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set where the extension should be create or updated.

    • instanceId: string

      The instance ID of the virtual machine.

    • parameters: VirtualMachineScaleSetVM

      Parameters supplied to the Update Virtual Machine Scale Sets VM operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

deallocate

  • deallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsDeallocateResponse>
  • Deallocates 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsDeallocateResponse>

    Promise<Models.VirtualMachineScaleSetVMsDeallocateResponse>

deleteMethod

  • deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsDeleteMethodResponse>
  • Deletes a virtual machine from a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsDeleteMethodResponse>

    Promise<Models.VirtualMachineScaleSetVMsDeleteMethodResponse>

get

  • get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsGetResponse>
  • get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback<VirtualMachineScaleSetVM>): void
  • get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<VirtualMachineScaleSetVM>): void
  • Gets a virtual machine from a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsGetResponse>

    Promise<Models.VirtualMachineScaleSetVMsGetResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • callback: msRest.ServiceCallback<VirtualMachineScaleSetVM>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<VirtualMachineScaleSetVM>

      The callback

    Returns void

getInstanceView

  • getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsGetInstanceViewResponse>
  • getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback<VirtualMachineScaleSetVMInstanceView>): void
  • getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<VirtualMachineScaleSetVMInstanceView>): void
  • Gets the status of a virtual machine from a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsGetInstanceViewResponse>

    Promise<Models.VirtualMachineScaleSetVMsGetInstanceViewResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • callback: msRest.ServiceCallback<VirtualMachineScaleSetVMInstanceView>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<VirtualMachineScaleSetVMInstanceView>

      The callback

    Returns void

list

listNext

  • listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsListNextResponse>
  • listNext(nextPageLink: string, callback: msRest.ServiceCallback<VirtualMachineScaleSetVMListResult>): void
  • listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<VirtualMachineScaleSetVMListResult>): void

performMaintenance

  • performMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsPerformMaintenanceResponse>
  • Performs maintenance on a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsPerformMaintenanceResponse>

    Promise<Models.VirtualMachineScaleSetVMsPerformMaintenanceResponse>

powerOff

  • powerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsPowerOffResponse>
  • Power 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsPowerOffResponse>

    Promise<Models.VirtualMachineScaleSetVMsPowerOffResponse>

redeploy

  • redeploy(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsRedeployResponse>
  • Redeploys a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsRedeployResponse>

    Promise<Models.VirtualMachineScaleSetVMsRedeployResponse>

reimage

  • reimage(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsReimageResponse>
  • Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsReimageResponse>

    Promise<Models.VirtualMachineScaleSetVMsReimageResponse>

reimageAll

  • reimageAll(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsReimageAllResponse>
  • Allows 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsReimageAllResponse>

    Promise<Models.VirtualMachineScaleSetVMsReimageAllResponse>

restart

  • restart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsRestartResponse>
  • Restarts a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsRestartResponse>

    Promise<Models.VirtualMachineScaleSetVMsRestartResponse>

start

  • start(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsStartResponse>
  • Starts a virtual machine in a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set.

    • instanceId: string

      The instance ID of the virtual machine.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsStartResponse>

    Promise<Models.VirtualMachineScaleSetVMsStartResponse>

update

  • update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachineScaleSetVMsUpdateResponse>
  • Updates a virtual machine of a VM scale set.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • vmScaleSetName: string

      The name of the VM scale set where the extension should be create or updated.

    • instanceId: string

      The instance ID of the virtual machine.

    • parameters: VirtualMachineScaleSetVM

      Parameters supplied to the Update Virtual Machine Scale Sets VM operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachineScaleSetVMsUpdateResponse>

    Promise<Models.VirtualMachineScaleSetVMsUpdateResponse>

Generated using TypeDoc