Interface VirtualMachineScaleSetsClient

    • Method Detail

      • listByLocationAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetInner> listByLocationAsync​(String location)
        Gets all the VM scale sets under the specified subscription for the specified location.
        Parameters:
        location - The location for which VM scale sets under the subscription are queried.
        Returns:
        all the VM scale sets under the specified subscription for the specified location 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.
      • listByLocation

        com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetInner> listByLocation​(String location)
        Gets all the VM scale sets under the specified subscription for the specified location.
        Parameters:
        location - The location for which VM scale sets under the subscription are queried.
        Returns:
        all the VM scale sets under the specified subscription for the specified location 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.
      • listByLocation

        com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetInner> listByLocation​(String location,
                                                                                           com.azure.core.util.Context context)
        Gets all the VM scale sets under the specified subscription for the specified location.
        Parameters:
        location - The location for which VM scale sets under the subscription are queried.
        context - The context to associate with this operation.
        Returns:
        all the VM scale sets under the specified subscription for the specified location 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.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String vmScaleSetName,
                                                                                                  VirtualMachineScaleSetInner parameters)
        Create or update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        describes a Virtual Machine 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.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetInner>,​VirtualMachineScaleSetInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                                     String vmScaleSetName,
                                                                                                                                                                                     VirtualMachineScaleSetInner parameters)
        Create or update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        the PollerFlux for polling of describes a Virtual Machine 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetInner>,​VirtualMachineScaleSetInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                                String vmScaleSetName,
                                                                                                                                                                                VirtualMachineScaleSetInner parameters)
        Create or update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetInner>,​VirtualMachineScaleSetInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                                String vmScaleSetName,
                                                                                                                                                                                VirtualMachineScaleSetInner parameters,
                                                                                                                                                                                com.azure.core.util.Context context)
        Create or update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine 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.
      • createOrUpdateAsync

        Mono<VirtualMachineScaleSetInner> createOrUpdateAsync​(String resourceGroupName,
                                                              String vmScaleSetName,
                                                              VirtualMachineScaleSetInner parameters)
        Create or update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        describes a Virtual Machine 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.
      • createOrUpdate

        VirtualMachineScaleSetInner createOrUpdate​(String resourceGroupName,
                                                   String vmScaleSetName,
                                                   VirtualMachineScaleSetInner parameters)
        Create or update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        describes a Virtual Machine 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.
      • createOrUpdate

        VirtualMachineScaleSetInner createOrUpdate​(String resourceGroupName,
                                                   String vmScaleSetName,
                                                   VirtualMachineScaleSetInner parameters,
                                                   com.azure.core.util.Context context)
        Create or update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        context - The context to associate with this operation.
        Returns:
        describes a Virtual Machine 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,
                                                                                          VirtualMachineScaleSetUpdate parameters)
        Update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        describes a Virtual Machine 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.
      • beginUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetInner>,​VirtualMachineScaleSetInner> beginUpdateAsync​(String resourceGroupName,
                                                                                                                                                                             String vmScaleSetName,
                                                                                                                                                                             VirtualMachineScaleSetUpdate parameters)
        Update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        the PollerFlux for polling of describes a Virtual Machine 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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetInner>,​VirtualMachineScaleSetInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                                        String vmScaleSetName,
                                                                                                                                                                        VirtualMachineScaleSetUpdate parameters)
        Update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine 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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetInner>,​VirtualMachineScaleSetInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                                        String vmScaleSetName,
                                                                                                                                                                        VirtualMachineScaleSetUpdate parameters,
                                                                                                                                                                        com.azure.core.util.Context context)
        Update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine 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.
      • update

        VirtualMachineScaleSetInner update​(String resourceGroupName,
                                           String vmScaleSetName,
                                           VirtualMachineScaleSetUpdate parameters,
                                           com.azure.core.util.Context context)
        Update a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set to create or update.
        parameters - The scale set object.
        context - The context to associate with this operation.
        Returns:
        describes a Virtual Machine 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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String vmScaleSetName,
                                                                                          Boolean forceDeletion)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        forceDeletion - Optional parameter to force delete 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,
                                                                                                                               Boolean forceDeletion)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        forceDeletion - Optional parameter to force delete 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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String vmScaleSetName,
                                                                                                                          Boolean forceDeletion)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        forceDeletion - Optional parameter to force delete a VM scale set. (Feature in Preview).
        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,
                                                                                                                          Boolean forceDeletion,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        forceDeletion - Optional parameter to force delete 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,
                               Boolean forceDeletion)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        forceDeletion - Optional parameter to force delete 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)
        Deletes a VM scale set.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                    Boolean forceDeletion)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        forceDeletion - Optional parameter to force delete a VM scale set. (Feature in Preview).
        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)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • delete

        void delete​(String resourceGroupName,
                    String vmScaleSetName,
                    Boolean forceDeletion,
                    com.azure.core.util.Context context)
        Deletes a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        forceDeletion - Optional parameter to force delete 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.
      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                                 String vmScaleSetName,
                                                                                                                 ExpandTypesForGetVMScaleSets expand)
        Display information about a virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        expand - The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation.
        Returns:
        describes a Virtual Machine 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.
      • getByResourceGroupAsync

        Mono<VirtualMachineScaleSetInner> getByResourceGroupAsync​(String resourceGroupName,
                                                                  String vmScaleSetName,
                                                                  ExpandTypesForGetVMScaleSets expand)
        Display information about a virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        expand - The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation.
        Returns:
        describes a Virtual Machine 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.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<VirtualMachineScaleSetInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                      String vmScaleSetName,
                                                                                                      ExpandTypesForGetVMScaleSets expand,
                                                                                                      com.azure.core.util.Context context)
        Display information about a virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        expand - The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation.
        context - The context to associate with this operation.
        Returns:
        describes a Virtual Machine 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.
      • deallocateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deallocateWithResponseAsync​(String resourceGroupName,
                                                                                              String vmScaleSetName,
                                                                                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                   VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                                                                                                              com.azure.core.util.Context context)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                   VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • deallocateAsync

        Mono<Void> deallocateAsync​(String resourceGroupName,
                                   String vmScaleSetName)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                        VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • deallocate

        void deallocate​(String resourceGroupName,
                        String vmScaleSetName)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • deallocate

        void deallocate​(String resourceGroupName,
                        String vmScaleSetName,
                        VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                        com.azure.core.util.Context context)
        Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • deleteInstancesWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteInstancesWithResponseAsync​(String resourceGroupName,
                                                                                                   String vmScaleSetName,
                                                                                                   VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                                                                                                   Boolean forceDeletion)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        forceDeletion - Optional parameter to force delete virtual machines from the 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.
      • beginDeleteInstancesAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteInstancesAsync​(String resourceGroupName,
                                                                                                                                        String vmScaleSetName,
                                                                                                                                        VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                                                                                                                                        Boolean forceDeletion)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        forceDeletion - Optional parameter to force delete virtual machines from the 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.
      • beginDeleteInstances

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteInstances​(String resourceGroupName,
                                                                                                                                   String vmScaleSetName,
                                                                                                                                   VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                                                                                                                                   Boolean forceDeletion)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        forceDeletion - Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview).
        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.
      • beginDeleteInstances

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteInstances​(String resourceGroupName,
                                                                                                                                   String vmScaleSetName,
                                                                                                                                   VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                                                                                                                                   Boolean forceDeletion,
                                                                                                                                   com.azure.core.util.Context context)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        forceDeletion - Optional parameter to force delete virtual machines from the 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.
      • deleteInstancesAsync

        Mono<Void> deleteInstancesAsync​(String resourceGroupName,
                                        String vmScaleSetName,
                                        VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                                        Boolean forceDeletion)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        forceDeletion - Optional parameter to force delete virtual machines from the 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.
      • deleteInstancesAsync

        Mono<Void> deleteInstancesAsync​(String resourceGroupName,
                                        String vmScaleSetName,
                                        VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • deleteInstances

        void deleteInstances​(String resourceGroupName,
                             String vmScaleSetName,
                             VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                             Boolean forceDeletion)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        forceDeletion - Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview).
        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.
      • deleteInstances

        void deleteInstances​(String resourceGroupName,
                             String vmScaleSetName,
                             VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • deleteInstances

        void deleteInstances​(String resourceGroupName,
                             String vmScaleSetName,
                             VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                             Boolean forceDeletion,
                             com.azure.core.util.Context context)
        Deletes virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        forceDeletion - Optional parameter to force delete virtual machines from the 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.
      • getInstanceViewWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetInstanceViewInner>> getInstanceViewWithResponseAsync​(String resourceGroupName,
                                                                                                                          String vmScaleSetName)
        Gets the status of a VM scale set instance.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        Returns:
        the status of a VM scale set instance 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<VirtualMachineScaleSetInstanceViewInner> getInstanceViewAsync​(String resourceGroupName,
                                                                           String vmScaleSetName)
        Gets the status of a VM scale set instance.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        Returns:
        the status of a VM scale set instance 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.
      • getInstanceView

        VirtualMachineScaleSetInstanceViewInner getInstanceView​(String resourceGroupName,
                                                                String vmScaleSetName)
        Gets the status of a VM scale set instance.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        Returns:
        the status of a VM scale set instance.
        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<VirtualMachineScaleSetInstanceViewInner> getInstanceViewWithResponse​(String resourceGroupName,
                                                                                                               String vmScaleSetName,
                                                                                                               com.azure.core.util.Context context)
        Gets the status of a VM scale set instance.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        context - The context to associate with this operation.
        Returns:
        the status of a VM scale set instance 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetInner> listByResourceGroup​(String resourceGroupName,
                                                                                                com.azure.core.util.Context context)
        Gets a list of all VM scale sets under a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        a list of all VM scale sets under a resource group 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.
      • listAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetInner> listAsync()
        Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
        Specified by:
        listAsync in interface InnerSupportsListing<VirtualMachineScaleSetInner>
        Returns:
        a list of all VM Scale Sets in the subscription, regardless of the associated resource group as paginated response with PagedFlux.
        Throws:
        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<VirtualMachineScaleSetInner> list()
        Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
        Specified by:
        list in interface InnerSupportsListing<VirtualMachineScaleSetInner>
        Returns:
        a list of all VM Scale Sets in the subscription, regardless of the associated resource group as paginated response with PagedIterable.
        Throws:
        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<VirtualMachineScaleSetInner> list​(com.azure.core.util.Context context)
        Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        a list of all VM Scale Sets in the subscription, regardless of the associated resource group 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.
      • listSkusAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetSkuInner> listSkusAsync​(String resourceGroupName,
                                                                                         String vmScaleSetName)
        Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        Returns:
        a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU 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.
      • listSkus

        com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetSkuInner> listSkus​(String resourceGroupName,
                                                                                        String vmScaleSetName)
        Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        Returns:
        a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU 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.
      • listSkus

        com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetSkuInner> listSkus​(String resourceGroupName,
                                                                                        String vmScaleSetName,
                                                                                        com.azure.core.util.Context context)
        Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        context - The context to associate with this operation.
        Returns:
        a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU 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.
      • getOSUpgradeHistoryAsync

        com.azure.core.http.rest.PagedFlux<UpgradeOperationHistoricalStatusInfoInner> getOSUpgradeHistoryAsync​(String resourceGroupName,
                                                                                                               String vmScaleSetName)
        Gets list of OS upgrades on a VM scale set instance.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        Returns:
        list of OS upgrades on a VM scale set instance 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.
      • getOSUpgradeHistory

        com.azure.core.http.rest.PagedIterable<UpgradeOperationHistoricalStatusInfoInner> getOSUpgradeHistory​(String resourceGroupName,
                                                                                                              String vmScaleSetName)
        Gets list of OS upgrades on a VM scale set instance.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        Returns:
        list of OS upgrades on a VM scale set instance 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.
      • getOSUpgradeHistory

        com.azure.core.http.rest.PagedIterable<UpgradeOperationHistoricalStatusInfoInner> getOSUpgradeHistory​(String resourceGroupName,
                                                                                                              String vmScaleSetName,
                                                                                                              com.azure.core.util.Context context)
        Gets list of OS upgrades on a VM scale set instance.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        context - The context to associate with this operation.
        Returns:
        list of OS upgrades on a VM scale set instance 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.
      • powerOffWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> powerOffWithResponseAsync​(String resourceGroupName,
                                                                                            String vmScaleSetName,
                                                                                            Boolean skipShutdown,
                                                                                            VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                 Boolean skipShutdown,
                                                                                                                                 VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                            Boolean skipShutdown,
                                                                                                                            VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                            Boolean skipShutdown,
                                                                                                                            VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                                                                                                            com.azure.core.util.Context context)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                 Boolean skipShutdown,
                                 VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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,
                      Boolean skipShutdown,
                      VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • powerOff

        void powerOff​(String resourceGroupName,
                      String vmScaleSetName)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the 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.
      • powerOff

        void powerOff​(String resourceGroupName,
                      String vmScaleSetName,
                      Boolean skipShutdown,
                      VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                      com.azure.core.util.Context context)
        Power off (stop) one or more virtual machines 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.
        vmScaleSetName - The name of the VM scale set.
        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.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                           VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                           VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                           VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                                                                                                           com.azure.core.util.Context context)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • restartAsync

        Mono<Void> restartAsync​(String resourceGroupName,
                                String vmScaleSetName)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                     VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • restart

        void restart​(String resourceGroupName,
                     String vmScaleSetName)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • restart

        void restart​(String resourceGroupName,
                     String vmScaleSetName,
                     VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                     com.azure.core.util.Context context)
        Restarts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • startWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync​(String resourceGroupName,
                                                                                         String vmScaleSetName,
                                                                                         VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                         VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                         VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                                                                                                         com.azure.core.util.Context context)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • startAsync

        Mono<Void> startAsync​(String resourceGroupName,
                              String vmScaleSetName)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                   VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • start

        void start​(String resourceGroupName,
                   String vmScaleSetName)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • start

        void start​(String resourceGroupName,
                   String vmScaleSetName,
                   VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                   com.azure.core.util.Context context)
        Starts one or more virtual machines in a VM scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                            VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                 VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                            VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                            VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                                                                                                            com.azure.core.util.Context context)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                 VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • redeployAsync

        Mono<Void> redeployAsync​(String resourceGroupName,
                                 String vmScaleSetName)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                      VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • redeploy

        void redeploy​(String resourceGroupName,
                      String vmScaleSetName)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • redeploy

        void redeploy​(String resourceGroupName,
                      String vmScaleSetName,
                      VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                      com.azure.core.util.Context context)
        Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • performMaintenanceWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync​(String resourceGroupName,
                                                                                                      String vmScaleSetName,
                                                                                                      VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                           VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                      VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                      VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                                                                                                                      com.azure.core.util.Context context)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                           VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • performMaintenanceAsync

        Mono<Void> performMaintenanceAsync​(String resourceGroupName,
                                           String vmScaleSetName)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                                VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • performMaintenance

        void performMaintenance​(String resourceGroupName,
                                String vmScaleSetName)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • performMaintenance

        void performMaintenance​(String resourceGroupName,
                                String vmScaleSetName,
                                VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                com.azure.core.util.Context context)
        Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • updateInstancesWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateInstancesWithResponseAsync​(String resourceGroupName,
                                                                                                   String vmScaleSetName,
                                                                                                   VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs)
        Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • beginUpdateInstancesAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginUpdateInstancesAsync​(String resourceGroupName,
                                                                                                                                        String vmScaleSetName,
                                                                                                                                        VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs)
        Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • beginUpdateInstances

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginUpdateInstances​(String resourceGroupName,
                                                                                                                                   String vmScaleSetName,
                                                                                                                                   VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs)
        Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • beginUpdateInstances

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginUpdateInstances​(String resourceGroupName,
                                                                                                                                   String vmScaleSetName,
                                                                                                                                   VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                                                                                                                                   com.azure.core.util.Context context)
        Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • updateInstancesAsync

        Mono<Void> updateInstancesAsync​(String resourceGroupName,
                                        String vmScaleSetName,
                                        VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs)
        Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • updateInstances

        void updateInstances​(String resourceGroupName,
                             String vmScaleSetName,
                             VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs)
        Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • updateInstances

        void updateInstances​(String resourceGroupName,
                             String vmScaleSetName,
                             VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs,
                             com.azure.core.util.Context context)
        Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                           VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmScaleSetReimageInput - Parameters for Reimaging VM 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,
                                                                                                                                VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmScaleSetReimageInput - Parameters for Reimaging VM 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.
      • beginReimage

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginReimage​(String resourceGroupName,
                                                                                                                           String vmScaleSetName,
                                                                                                                           VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmScaleSetReimageInput - Parameters for Reimaging VM ScaleSet.
        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,
                                                                                                                           VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput,
                                                                                                                           com.azure.core.util.Context context)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmScaleSetReimageInput - Parameters for Reimaging VM 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,
                                VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmScaleSetReimageInput - Parameters for Reimaging VM 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)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                     VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmScaleSetReimageInput - Parameters for Reimaging VM ScaleSet.
        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)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • reimage

        void reimage​(String resourceGroupName,
                     String vmScaleSetName,
                     VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput,
                     com.azure.core.util.Context context)
        Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmScaleSetReimageInput - Parameters for Reimaging VM 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,
                                                                                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                                   VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                                                                                                              VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                                                                                                                              com.azure.core.util.Context context)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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,
                                   VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • reimageAllAsync

        Mono<Void> reimageAllAsync​(String resourceGroupName,
                                   String vmScaleSetName)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        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,
                        VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the 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.
      • reimageAll

        void reimageAll​(String resourceGroupName,
                        String vmScaleSetName)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the 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.
      • reimageAll

        void reimageAll​(String resourceGroupName,
                        String vmScaleSetName,
                        VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs,
                        com.azure.core.util.Context context)
        Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
        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.
      • forceRecoveryServiceFabricPlatformUpdateDomainWalkWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RecoveryWalkResponseInner>> forceRecoveryServiceFabricPlatformUpdateDomainWalkWithResponseAsync​(String resourceGroupName,
                                                                                                                                               String vmScaleSetName,
                                                                                                                                               int platformUpdateDomain,
                                                                                                                                               String zone,
                                                                                                                                               String placementGroupId)
        Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        platformUpdateDomain - The platform update domain for which a manual recovery walk is requested.
        zone - The zone in which the manual recovery walk is requested for cross zone virtual machine scale set.
        placementGroupId - The placement group id for which the manual recovery walk is requested.
        Returns:
        response after calling a manual recovery walk 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.
      • forceRecoveryServiceFabricPlatformUpdateDomainWalkAsync

        Mono<RecoveryWalkResponseInner> forceRecoveryServiceFabricPlatformUpdateDomainWalkAsync​(String resourceGroupName,
                                                                                                String vmScaleSetName,
                                                                                                int platformUpdateDomain,
                                                                                                String zone,
                                                                                                String placementGroupId)
        Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        platformUpdateDomain - The platform update domain for which a manual recovery walk is requested.
        zone - The zone in which the manual recovery walk is requested for cross zone virtual machine scale set.
        placementGroupId - The placement group id for which the manual recovery walk is requested.
        Returns:
        response after calling a manual recovery walk 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.
      • forceRecoveryServiceFabricPlatformUpdateDomainWalkAsync

        Mono<RecoveryWalkResponseInner> forceRecoveryServiceFabricPlatformUpdateDomainWalkAsync​(String resourceGroupName,
                                                                                                String vmScaleSetName,
                                                                                                int platformUpdateDomain)
        Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        platformUpdateDomain - The platform update domain for which a manual recovery walk is requested.
        Returns:
        response after calling a manual recovery walk 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.
      • forceRecoveryServiceFabricPlatformUpdateDomainWalk

        RecoveryWalkResponseInner forceRecoveryServiceFabricPlatformUpdateDomainWalk​(String resourceGroupName,
                                                                                     String vmScaleSetName,
                                                                                     int platformUpdateDomain)
        Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        platformUpdateDomain - The platform update domain for which a manual recovery walk is requested.
        Returns:
        response after calling a manual recovery walk.
        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.
      • forceRecoveryServiceFabricPlatformUpdateDomainWalkWithResponse

        com.azure.core.http.rest.Response<RecoveryWalkResponseInner> forceRecoveryServiceFabricPlatformUpdateDomainWalkWithResponse​(String resourceGroupName,
                                                                                                                                    String vmScaleSetName,
                                                                                                                                    int platformUpdateDomain,
                                                                                                                                    String zone,
                                                                                                                                    String placementGroupId,
                                                                                                                                    com.azure.core.util.Context context)
        Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the VM scale set.
        platformUpdateDomain - The platform update domain for which a manual recovery walk is requested.
        zone - The zone in which the manual recovery walk is requested for cross zone virtual machine scale set.
        placementGroupId - The placement group id for which the manual recovery walk is requested.
        context - The context to associate with this operation.
        Returns:
        response after calling a manual recovery walk 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.
      • convertToSinglePlacementGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> convertToSinglePlacementGroupWithResponseAsync​(String resourceGroupName,
                                                                                                     String vmScaleSetName,
                                                                                                     VMScaleSetConvertToSinglePlacementGroupInput parameters)
        Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for ConvertToSinglePlacementGroup API.
        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.
      • convertToSinglePlacementGroupAsync

        Mono<Void> convertToSinglePlacementGroupAsync​(String resourceGroupName,
                                                      String vmScaleSetName,
                                                      VMScaleSetConvertToSinglePlacementGroupInput parameters)
        Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for ConvertToSinglePlacementGroup API.
        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.
      • convertToSinglePlacementGroup

        void convertToSinglePlacementGroup​(String resourceGroupName,
                                           String vmScaleSetName,
                                           VMScaleSetConvertToSinglePlacementGroupInput parameters)
        Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for ConvertToSinglePlacementGroup API.
        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.
      • convertToSinglePlacementGroupWithResponse

        com.azure.core.http.rest.Response<Void> convertToSinglePlacementGroupWithResponse​(String resourceGroupName,
                                                                                          String vmScaleSetName,
                                                                                          VMScaleSetConvertToSinglePlacementGroupInput parameters,
                                                                                          com.azure.core.util.Context context)
        Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for ConvertToSinglePlacementGroup API.
        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.
      • setOrchestrationServiceStateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> setOrchestrationServiceStateWithResponseAsync​(String resourceGroupName,
                                                                                                                String vmScaleSetName,
                                                                                                                OrchestrationServiceStateInput parameters)
        Changes ServiceState property for a given service.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for SetOrchestrationServiceState API.
        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.
      • beginSetOrchestrationServiceStateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginSetOrchestrationServiceStateAsync​(String resourceGroupName,
                                                                                                                                                     String vmScaleSetName,
                                                                                                                                                     OrchestrationServiceStateInput parameters)
        Changes ServiceState property for a given service.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for SetOrchestrationServiceState API.
        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.
      • beginSetOrchestrationServiceState

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginSetOrchestrationServiceState​(String resourceGroupName,
                                                                                                                                                String vmScaleSetName,
                                                                                                                                                OrchestrationServiceStateInput parameters)
        Changes ServiceState property for a given service.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for SetOrchestrationServiceState API.
        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.
      • beginSetOrchestrationServiceState

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginSetOrchestrationServiceState​(String resourceGroupName,
                                                                                                                                                String vmScaleSetName,
                                                                                                                                                OrchestrationServiceStateInput parameters,
                                                                                                                                                com.azure.core.util.Context context)
        Changes ServiceState property for a given service.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for SetOrchestrationServiceState API.
        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.
      • setOrchestrationServiceStateAsync

        Mono<Void> setOrchestrationServiceStateAsync​(String resourceGroupName,
                                                     String vmScaleSetName,
                                                     OrchestrationServiceStateInput parameters)
        Changes ServiceState property for a given service.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for SetOrchestrationServiceState API.
        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.
      • setOrchestrationServiceState

        void setOrchestrationServiceState​(String resourceGroupName,
                                          String vmScaleSetName,
                                          OrchestrationServiceStateInput parameters)
        Changes ServiceState property for a given service.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for SetOrchestrationServiceState API.
        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.
      • setOrchestrationServiceState

        void setOrchestrationServiceState​(String resourceGroupName,
                                          String vmScaleSetName,
                                          OrchestrationServiceStateInput parameters,
                                          com.azure.core.util.Context context)
        Changes ServiceState property for a given service.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmScaleSetName - The name of the virtual machine scale set to create or update.
        parameters - The input object for SetOrchestrationServiceState API.
        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.