Package version:

Interface VirtualMachineScaleSetVMs

Interface representing a VirtualMachineScaleSetVMs.

interface VirtualMachineScaleSetVMs {
    beginApproveRollingUpgrade(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders>, VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders>>;
    beginApproveRollingUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise<VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders>;
    beginAttachDetachDataDisks(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams): Promise<SimplePollerLike<OperationState<StorageProfile>, StorageProfile>>;
    beginAttachDetachDataDisksAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams): Promise<StorageProfile>;
    beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginDeallocateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise<void>;
    beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginDeleteAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise<void>;
    beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginPerformMaintenanceAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams): Promise<void>;
    beginPowerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPowerOffOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginPowerOffAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPowerOffOptionalParams): Promise<void>;
    beginRedeploy(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRedeployOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginRedeployAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRedeployOptionalParams): Promise<void>;
    beginReimage(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginReimageAll(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginReimageAllAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams): Promise<void>;
    beginReimageAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageOptionalParams): Promise<void>;
    beginRestart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginRestartAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRestartOptionalParams): Promise<void>;
    beginRunCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, options?: VirtualMachineScaleSetVMsRunCommandOptionalParams): Promise<SimplePollerLike<OperationState<RunCommandResult>, RunCommandResult>>;
    beginRunCommandAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, options?: VirtualMachineScaleSetVMsRunCommandOptionalParams): Promise<RunCommandResult>;
    beginStart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginStartAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsStartOptionalParams): Promise<void>;
    beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, options?: VirtualMachineScaleSetVMsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachineScaleSetVM>, VirtualMachineScaleSetVM>>;
    beginUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, options?: VirtualMachineScaleSetVMsUpdateOptionalParams): Promise<VirtualMachineScaleSetVM>;
    get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsGetOptionalParams): Promise<VirtualMachineScaleSetVM>;
    getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams): Promise<VirtualMachineScaleSetVMInstanceView>;
    list(resourceGroupName: string, virtualMachineScaleSetName: string, options?: VirtualMachineScaleSetVMsListOptionalParams): PagedAsyncIterableIterator<VirtualMachineScaleSetVM>;
    retrieveBootDiagnosticsData(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams): Promise<RetrieveBootDiagnosticsDataResult>;
    simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams): Promise<void>;
}

Methods

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsDeallocateOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsDeallocateOptionalParams

      The options parameters.

    Returns Promise<void>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsDeleteOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • Performs maintenance on a virtual machine in a VM scale set.

    Parameters

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • 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. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been 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.

    • Optionaloptions: VirtualMachineScaleSetVMsPowerOffOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • 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. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been 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.

    • Optionaloptions: VirtualMachineScaleSetVMsPowerOffOptionalParams

      The options parameters.

    Returns Promise<void>

  • Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.

    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.

    • Optionaloptions: VirtualMachineScaleSetVMsRedeployOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.

    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.

    • Optionaloptions: VirtualMachineScaleSetVMsRedeployOptionalParams

      The options parameters.

    Returns Promise<void>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsReimageOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsReimageAllOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsReimageAllOptionalParams

      The options parameters.

    Returns Promise<void>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsReimageOptionalParams

      The options parameters.

    Returns Promise<void>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsRestartOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • 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.

    • Optionaloptions: VirtualMachineScaleSetVMsStartOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>