Interface VirtualMachineScaleSetVMsClient


public interface VirtualMachineScaleSetVMsClient
An instance of this class provides access to all the operations defined in VirtualMachineScaleSetVMsClient.
  • Method Details

    • listAsync

      com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVMInner> listAsync(String resourceGroupName, String virtualMachineScaleSetName, String filter, String select, String expand)
      Gets a list of all virtual machines in a VM scale sets.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      virtualMachineScaleSetName - The name of the VirtualMachineScaleSet.
      filter - The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.
      select - The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'.
      expand - The expand expression to apply to the operation. Allowed values are 'instanceView'.
      Returns:
      a list of all virtual machines in a VM scale sets as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAsync

      com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVMInner> listAsync(String resourceGroupName, String virtualMachineScaleSetName)
      Gets a list of all virtual machines in a VM scale sets.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      virtualMachineScaleSetName - The name of the VirtualMachineScaleSet.
      Returns:
      a list of all virtual machines in a VM scale sets as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVMInner> list(String resourceGroupName, String virtualMachineScaleSetName)
      Gets a list of all virtual machines in a VM scale sets.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      virtualMachineScaleSetName - The name of the VirtualMachineScaleSet.
      Returns:
      a list of all virtual machines in a VM scale sets as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVMInner> list(String resourceGroupName, String virtualMachineScaleSetName, String filter, String select, String expand, com.azure.core.util.Context context)
      Gets a list of all virtual machines in a VM scale sets.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      virtualMachineScaleSetName - The name of the VirtualMachineScaleSet.
      filter - The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.
      select - The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'.
      expand - The expand expression to apply to the operation. Allowed values are 'instanceView'.
      context - The context to associate with this operation.
      Returns:
      a list of all virtual machines in a VM scale sets as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInner>> getWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, InstanceViewTypes expand)
      Gets a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      expand - The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine.
      Returns:
      a virtual machine from a VM scale set along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<VirtualMachineScaleSetVMInner> getAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Gets a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      a virtual machine from a VM scale set on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInner> getWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, InstanceViewTypes expand, com.azure.core.util.Context context)
      Gets a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      expand - The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      a virtual machine from a VM scale set along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      VirtualMachineScaleSetVMInner get(String resourceGroupName, String vmScaleSetName, String instanceId)
      Gets a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      a virtual machine from a VM scale set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      ifMatch - The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
      ifNoneMatch - Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.
      Returns:
      describes a virtual machine scale set virtual machine along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      ifMatch - The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
      ifNoneMatch - Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.
      Returns:
      the PollerFlux for polling of describes a virtual machine scale set virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      Returns:
      the PollerFlux for polling of describes a virtual machine scale set virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      Returns:
      the SyncPoller for polling of describes a virtual machine scale set virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      ifMatch - The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
      ifNoneMatch - Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of describes a virtual machine scale set virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<VirtualMachineScaleSetVMInner> updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      ifMatch - The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
      ifNoneMatch - Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.
      Returns:
      describes a virtual machine scale set virtual machine on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<VirtualMachineScaleSetVMInner> updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      Returns:
      describes a virtual machine scale set virtual machine on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      VirtualMachineScaleSetVMInner update(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      Returns:
      describes a virtual machine scale set virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      VirtualMachineScaleSetVMInner update(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context)
      Updates a virtual machine of a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
      ifMatch - The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
      ifNoneMatch - Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.
      context - The context to associate with this operation.
      Returns:
      describes a virtual machine scale set virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      forceDeletion - Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      forceDeletion - Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String vmScaleSetName, String instanceId)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion, com.azure.core.util.Context context)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      forceDeletion - Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      forceDeletion - Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String vmScaleSetName, String instanceId)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion, com.azure.core.util.Context context)
      Deletes a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      forceDeletion - Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • approveRollingUpgradeWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> approveRollingUpgradeWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginApproveRollingUpgradeAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginApproveRollingUpgradeAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginApproveRollingUpgrade

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginApproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId)
      Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginApproveRollingUpgrade

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginApproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • approveRollingUpgradeAsync

      Mono<Void> approveRollingUpgradeAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • approveRollingUpgrade

      void approveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId)
      Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • approveRollingUpgrade

      void approveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • attachDetachDataDisksWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> attachDetachDataDisksWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters)
      Attach and detach data disks to/from a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.
      Returns:
      specifies the storage settings for the virtual machine disks along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginAttachDetachDataDisksAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisksAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters)
      Attach and detach data disks to/from a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.
      Returns:
      the PollerFlux for polling of specifies the storage settings for the virtual machine disks.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginAttachDetachDataDisks

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters)
      Attach and detach data disks to/from a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.
      Returns:
      the SyncPoller for polling of specifies the storage settings for the virtual machine disks.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginAttachDetachDataDisks

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context)
      Attach and detach data disks to/from a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of specifies the storage settings for the virtual machine disks.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • attachDetachDataDisksAsync

      Mono<StorageProfile> attachDetachDataDisksAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters)
      Attach and detach data disks to/from a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.
      Returns:
      specifies the storage settings for the virtual machine disks on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • attachDetachDataDisks

      StorageProfile attachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters)
      Attach and detach data disks to/from a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.
      Returns:
      specifies the storage settings for the virtual machine disks.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • attachDetachDataDisks

      StorageProfile attachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context)
      Attach and detach data disks to/from a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.
      context - The context to associate with this operation.
      Returns:
      specifies the storage settings for the virtual machine disks.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deallocateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deallocateWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeallocateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeallocateAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeallocate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDeallocate(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeallocate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDeallocate(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deallocateAsync

      Mono<Void> deallocateAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deallocate

      void deallocate(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deallocate

      void deallocate(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getInstanceViewWithResponseAsync

      Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInstanceViewInner>> getInstanceViewWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Gets the status of a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the status of a virtual machine from a VM scale set along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getInstanceViewAsync

      Mono<VirtualMachineScaleSetVMInstanceViewInner> getInstanceViewAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Gets the status of a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the status of a virtual machine from a VM scale set on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getInstanceViewWithResponse

      com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInstanceViewInner> getInstanceViewWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Gets the status of a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the status of a virtual machine from a VM scale set along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getInstanceView

      VirtualMachineScaleSetVMInstanceViewInner getInstanceView(String resourceGroupName, String vmScaleSetName, String instanceId)
      Gets the status of a virtual machine from a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the status of a virtual machine from a VM scale set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • performMaintenanceWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Performs maintenance on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPerformMaintenanceAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginPerformMaintenanceAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Performs maintenance on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPerformMaintenance

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginPerformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId)
      Performs maintenance on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPerformMaintenance

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginPerformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Performs maintenance on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • performMaintenanceAsync

      Mono<Void> performMaintenanceAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Performs maintenance on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • performMaintenance

      void performMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId)
      Performs maintenance on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • performMaintenance

      void performMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Performs maintenance on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • powerOffWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> powerOffWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPowerOffAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginPowerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPowerOffAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginPowerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPowerOff

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginPowerOff(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPowerOff

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginPowerOff(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown, com.azure.core.util.Context context)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • powerOffAsync

      Mono<Void> powerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • powerOffAsync

      Mono<Void> powerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • powerOff

      void powerOff(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • powerOff

      void powerOff(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown, com.azure.core.util.Context context)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • redeployWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRedeployAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginRedeployAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRedeploy

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRedeploy(String resourceGroupName, String vmScaleSetName, String instanceId)
      Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRedeploy

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRedeploy(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • redeployAsync

      Mono<Void> redeployAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • redeploy

      void redeploy(String resourceGroupName, String vmScaleSetName, String instanceId)
      Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • redeploy

      void redeploy(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      vmScaleSetVMReimageInput - Parameters for the Reimaging Virtual machine in ScaleSet.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginReimageAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginReimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      vmScaleSetVMReimageInput - Parameters for the Reimaging Virtual machine in ScaleSet.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginReimageAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginReimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginReimage

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginReimage(String resourceGroupName, String vmScaleSetName, String instanceId)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginReimage

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginReimage(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput, com.azure.core.util.Context context)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      vmScaleSetVMReimageInput - Parameters for the Reimaging Virtual machine in ScaleSet.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageAsync

      Mono<Void> reimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      vmScaleSetVMReimageInput - Parameters for the Reimaging Virtual machine in ScaleSet.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageAsync

      Mono<Void> reimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimage

      void reimage(String resourceGroupName, String vmScaleSetName, String instanceId)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimage

      void reimage(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput, com.azure.core.util.Context context)
      Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      vmScaleSetVMReimageInput - Parameters for the Reimaging Virtual machine in ScaleSet.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageAllWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageAllWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginReimageAllAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginReimageAllAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginReimageAll

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginReimageAll(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginReimageAll

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginReimageAll(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageAllAsync

      Mono<Void> reimageAllAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageAll

      void reimageAll(String resourceGroupName, String vmScaleSetName, String instanceId)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageAll

      void reimageAll(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      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 - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restartWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Restarts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRestartAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginRestartAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Restarts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRestart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRestart(String resourceGroupName, String vmScaleSetName, String instanceId)
      Restarts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRestart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRestart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Restarts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restartAsync

      Mono<Void> restartAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Restarts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restart

      void restart(String resourceGroupName, String vmScaleSetName, String instanceId)
      Restarts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restart

      void restart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Restarts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • retrieveBootDiagnosticsDataWithResponseAsync

      Mono<com.azure.core.http.rest.Response<RetrieveBootDiagnosticsDataResultInner>> retrieveBootDiagnosticsDataWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Integer sasUriExpirationTimeInMinutes)
      The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      sasUriExpirationTimeInMinutes - Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.
      Returns:
      the SAS URIs of the console screenshot and serial log blobs along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • retrieveBootDiagnosticsDataAsync

      Mono<RetrieveBootDiagnosticsDataResultInner> retrieveBootDiagnosticsDataAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SAS URIs of the console screenshot and serial log blobs on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • retrieveBootDiagnosticsDataWithResponse

      com.azure.core.http.rest.Response<RetrieveBootDiagnosticsDataResultInner> retrieveBootDiagnosticsDataWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, Integer sasUriExpirationTimeInMinutes, com.azure.core.util.Context context)
      The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      sasUriExpirationTimeInMinutes - Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.
      context - The context to associate with this operation.
      Returns:
      the SAS URIs of the console screenshot and serial log blobs along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • retrieveBootDiagnosticsData

      RetrieveBootDiagnosticsDataResultInner retrieveBootDiagnosticsData(String resourceGroupName, String vmScaleSetName, String instanceId)
      The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SAS URIs of the console screenshot and serial log blobs.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • runCommandWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> runCommandWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters)
      Run command on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Run command operation.
      Returns:
      the response body along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRunCommandAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<RunCommandResultInner>, RunCommandResultInner> beginRunCommandAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters)
      Run command on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Run command operation.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRunCommand

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RunCommandResultInner>, RunCommandResultInner> beginRunCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters)
      Run command on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Run command operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRunCommand

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RunCommandResultInner>, RunCommandResultInner> beginRunCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters, com.azure.core.util.Context context)
      Run command on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Run command operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • runCommandAsync

      Mono<RunCommandResultInner> runCommandAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters)
      Run command on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Run command operation.
      Returns:
      the response body on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • runCommand

      RunCommandResultInner runCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters)
      Run command on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Run command operation.
      Returns:
      the response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • runCommand

      RunCommandResultInner runCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters, com.azure.core.util.Context context)
      Run command on a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      parameters - Parameters supplied to the Run command operation.
      context - The context to associate with this operation.
      Returns:
      the response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • simulateEvictionWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> simulateEvictionWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      The operation to simulate the eviction of spot virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • simulateEvictionAsync

      Mono<Void> simulateEvictionAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      The operation to simulate the eviction of spot virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • simulateEvictionWithResponse

      com.azure.core.http.rest.Response<Void> simulateEvictionWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      The operation to simulate the eviction of spot virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • simulateEviction

      void simulateEviction(String resourceGroupName, String vmScaleSetName, String instanceId)
      The operation to simulate the eviction of spot virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Starts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginStartAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginStartAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Starts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginStart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginStart(String resourceGroupName, String vmScaleSetName, String instanceId)
      Starts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginStart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginStart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Starts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startAsync

      Mono<Void> startAsync(String resourceGroupName, String vmScaleSetName, String instanceId)
      Starts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • start

      void start(String resourceGroupName, String vmScaleSetName, String instanceId)
      Starts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • start

      void start(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context)
      Starts a virtual machine in a VM scale set.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      vmScaleSetName - The name of the VM scale set.
      instanceId - The instance ID of the virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.