Interface VirtualMachinesClient

    • Method Detail

      • listByLocationAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByLocationAsync​(String location)
        Gets all the virtual machines under the specified subscription for the specified location.
        Parameters:
        location - The location for which virtual machines under the subscription are queried.
        Returns:
        all the virtual machines 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<VirtualMachineInner> listByLocation​(String location)
        Gets all the virtual machines under the specified subscription for the specified location.
        Parameters:
        location - The location for which virtual machines under the subscription are queried.
        Returns:
        all the virtual machines 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<VirtualMachineInner> listByLocation​(String location,
                                                                                   com.azure.core.util.Context context)
        Gets all the virtual machines under the specified subscription for the specified location.
        Parameters:
        location - The location for which virtual machines under the subscription are queried.
        context - The context to associate with this operation.
        Returns:
        all the virtual machines 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.
      • captureWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> captureWithResponseAsync​(String resourceGroupName,
                                                                                           String vmName,
                                                                                           VirtualMachineCaptureParameters parameters)
        Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Capture Virtual Machine operation.
        Returns:
        output of virtual machine capture operation 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.
      • beginCaptureAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineCaptureResultInner>,​VirtualMachineCaptureResultInner> beginCaptureAsync​(String resourceGroupName,
                                                                                                                                                                                        String vmName,
                                                                                                                                                                                        VirtualMachineCaptureParameters parameters)
        Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Capture Virtual Machine operation.
        Returns:
        the PollerFlux for polling of output of virtual machine capture 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.
      • beginCapture

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineCaptureResultInner>,​VirtualMachineCaptureResultInner> beginCapture​(String resourceGroupName,
                                                                                                                                                                                   String vmName,
                                                                                                                                                                                   VirtualMachineCaptureParameters parameters)
        Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Capture Virtual Machine operation.
        Returns:
        the SyncPoller for polling of output of virtual machine capture 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.
      • beginCapture

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineCaptureResultInner>,​VirtualMachineCaptureResultInner> beginCapture​(String resourceGroupName,
                                                                                                                                                                                   String vmName,
                                                                                                                                                                                   VirtualMachineCaptureParameters parameters,
                                                                                                                                                                                   com.azure.core.util.Context context)
        Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Capture Virtual Machine operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of output of virtual machine capture 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.
      • captureAsync

        Mono<VirtualMachineCaptureResultInner> captureAsync​(String resourceGroupName,
                                                            String vmName,
                                                            VirtualMachineCaptureParameters parameters)
        Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Capture Virtual Machine operation.
        Returns:
        output of virtual machine capture operation 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.
      • capture

        VirtualMachineCaptureResultInner capture​(String resourceGroupName,
                                                 String vmName,
                                                 VirtualMachineCaptureParameters parameters)
        Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Capture Virtual Machine operation.
        Returns:
        output of virtual machine capture 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.
      • capture

        VirtualMachineCaptureResultInner capture​(String resourceGroupName,
                                                 String vmName,
                                                 VirtualMachineCaptureParameters parameters,
                                                 com.azure.core.util.Context context)
        Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Capture Virtual Machine operation.
        context - The context to associate with this operation.
        Returns:
        output of virtual machine capture 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.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String vmName,
                                                                                                  VirtualMachineInner parameters)
        The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Create Virtual Machine operation.
        Returns:
        describes a Virtual Machine along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInner>,​VirtualMachineInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                     String vmName,
                                                                                                                                                                     VirtualMachineInner parameters)
        The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Create Virtual Machine operation.
        Returns:
        the PollerFlux for polling of describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,​VirtualMachineInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String vmName,
                                                                                                                                                                VirtualMachineInner parameters)
        The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Create Virtual Machine operation.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,​VirtualMachineInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String vmName,
                                                                                                                                                                VirtualMachineInner parameters,
                                                                                                                                                                com.azure.core.util.Context context)
        The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Create Virtual Machine operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<VirtualMachineInner> createOrUpdateAsync​(String resourceGroupName,
                                                      String vmName,
                                                      VirtualMachineInner parameters)
        The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Create Virtual Machine operation.
        Returns:
        describes a Virtual Machine on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualMachineInner createOrUpdate​(String resourceGroupName,
                                           String vmName,
                                           VirtualMachineInner parameters)
        The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Create Virtual Machine operation.
        Returns:
        describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualMachineInner createOrUpdate​(String resourceGroupName,
                                           String vmName,
                                           VirtualMachineInner parameters,
                                           com.azure.core.util.Context context)
        The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Create Virtual Machine operation.
        context - The context to associate with this operation.
        Returns:
        describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync​(String resourceGroupName,
                                                                                          String vmName,
                                                                                          VirtualMachineUpdateInner parameters)
        The operation to update a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Update Virtual Machine operation.
        Returns:
        describes a Virtual Machine along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInner>,​VirtualMachineInner> beginUpdateAsync​(String resourceGroupName,
                                                                                                                                                             String vmName,
                                                                                                                                                             VirtualMachineUpdateInner parameters)
        The operation to update a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Update Virtual Machine operation.
        Returns:
        the PollerFlux for polling of describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,​VirtualMachineInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                        String vmName,
                                                                                                                                                        VirtualMachineUpdateInner parameters)
        The operation to update a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Update Virtual Machine operation.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,​VirtualMachineInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                        String vmName,
                                                                                                                                                        VirtualMachineUpdateInner parameters,
                                                                                                                                                        com.azure.core.util.Context context)
        The operation to update a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Update Virtual Machine operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateAsync

        Mono<VirtualMachineInner> updateAsync​(String resourceGroupName,
                                              String vmName,
                                              VirtualMachineUpdateInner parameters)
        The operation to update a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Update Virtual Machine operation.
        Returns:
        describes a Virtual Machine on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        VirtualMachineInner update​(String resourceGroupName,
                                   String vmName,
                                   VirtualMachineUpdateInner parameters)
        The operation to update a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Update Virtual Machine operation.
        Returns:
        describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        VirtualMachineInner update​(String resourceGroupName,
                                   String vmName,
                                   VirtualMachineUpdateInner parameters,
                                   com.azure.core.util.Context context)
        The operation to update a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Update Virtual Machine operation.
        context - The context to associate with this operation.
        Returns:
        describes a Virtual Machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String vmName,
                                                                                          Boolean forceDeletion)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        forceDeletion - Optional parameter to force delete virtual machines.
        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 vmName,
                                                                                                                               Boolean forceDeletion)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        forceDeletion - Optional parameter to force delete virtual machines.
        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 vmName,
                                                                                                                          Boolean forceDeletion)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        forceDeletion - Optional parameter to force delete virtual machines.
        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 vmName,
                                                                                                                          Boolean forceDeletion,
                                                                                                                          com.azure.core.util.Context context)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        forceDeletion - Optional parameter to force delete virtual machines.
        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 vmName,
                               Boolean forceDeletion)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        forceDeletion - Optional parameter to force delete virtual machines.
        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 vmName)
        The operation to delete a virtual machine.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String vmName,
                    Boolean forceDeletion)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        forceDeletion - Optional parameter to force delete virtual machines.
        Throws:
        IllegalArgumentException - thrown if parameters fail 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 vmName)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String vmName,
                    Boolean forceDeletion,
                    com.azure.core.util.Context context)
        The operation to delete a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        forceDeletion - Optional parameter to force delete virtual machines.
        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<VirtualMachineInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                         String vmName,
                                                                                                         InstanceViewTypes expand)
        Retrieves information about the model view or the instance view of a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        expand - The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation.
        Returns:
        describes a Virtual Machine along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<VirtualMachineInner> getByResourceGroupAsync​(String resourceGroupName,
                                                          String vmName,
                                                          InstanceViewTypes expand)
        Retrieves information about the model view or the instance view of a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        expand - The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation.
        Returns:
        describes a Virtual Machine on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<VirtualMachineInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                              String vmName,
                                                                                              InstanceViewTypes expand,
                                                                                              com.azure.core.util.Context context)
        Retrieves information about the model view or the instance view of a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        expand - The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation.
        context - The context to associate with this operation.
        Returns:
        describes a Virtual Machine 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.
      • instanceViewWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VirtualMachineInstanceViewInner>> instanceViewWithResponseAsync​(String resourceGroupName,
                                                                                                               String vmName)
        Retrieves information about the run-time state of a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the instance view of a virtual machine along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • instanceViewAsync

        Mono<VirtualMachineInstanceViewInner> instanceViewAsync​(String resourceGroupName,
                                                                String vmName)
        Retrieves information about the run-time state of a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the instance view of a virtual machine on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • instanceView

        VirtualMachineInstanceViewInner instanceView​(String resourceGroupName,
                                                     String vmName)
        Retrieves information about the run-time state of a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the instance view of a virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • instanceViewWithResponse

        com.azure.core.http.rest.Response<VirtualMachineInstanceViewInner> instanceViewWithResponse​(String resourceGroupName,
                                                                                                    String vmName,
                                                                                                    com.azure.core.util.Context context)
        Retrieves information about the run-time state of a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Returns:
        the instance view of a virtual machine 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.
      • convertToManagedDisksWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> convertToManagedDisksWithResponseAsync​(String resourceGroupName,
                                                                                                         String vmName)
        Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginConvertToManagedDisksAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginConvertToManagedDisksAsync​(String resourceGroupName,
                                                                                                                                              String vmName)
        Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginConvertToManagedDisks

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginConvertToManagedDisks​(String resourceGroupName,
                                                                                                                                         String vmName)
        Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginConvertToManagedDisks

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginConvertToManagedDisks​(String resourceGroupName,
                                                                                                                                         String vmName,
                                                                                                                                         com.azure.core.util.Context context)
        Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • convertToManagedDisksAsync

        Mono<Void> convertToManagedDisksAsync​(String resourceGroupName,
                                              String vmName)
        Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • convertToManagedDisks

        void convertToManagedDisks​(String resourceGroupName,
                                   String vmName)
        Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • convertToManagedDisks

        void convertToManagedDisks​(String resourceGroupName,
                                   String vmName,
                                   com.azure.core.util.Context context)
        Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deallocateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deallocateWithResponseAsync​(String resourceGroupName,
                                                                                              String vmName,
                                                                                              Boolean hibernate)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        hibernate - Optional parameter to hibernate a virtual machine. (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.
      • beginDeallocateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeallocateAsync​(String resourceGroupName,
                                                                                                                                   String vmName,
                                                                                                                                   Boolean hibernate)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        hibernate - Optional parameter to hibernate a virtual machine. (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.
      • beginDeallocate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeallocate​(String resourceGroupName,
                                                                                                                              String vmName,
                                                                                                                              Boolean hibernate)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        hibernate - Optional parameter to hibernate a virtual machine. (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.
      • beginDeallocate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeallocate​(String resourceGroupName,
                                                                                                                              String vmName,
                                                                                                                              Boolean hibernate,
                                                                                                                              com.azure.core.util.Context context)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        hibernate - Optional parameter to hibernate a virtual machine. (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.
      • deallocateAsync

        Mono<Void> deallocateAsync​(String resourceGroupName,
                                   String vmName,
                                   Boolean hibernate)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        hibernate - Optional parameter to hibernate a virtual machine. (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.
      • deallocateAsync

        Mono<Void> deallocateAsync​(String resourceGroupName,
                                   String vmName)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deallocate

        void deallocate​(String resourceGroupName,
                        String vmName,
                        Boolean hibernate)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        hibernate - Optional parameter to hibernate a virtual machine. (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.
      • deallocate

        void deallocate​(String resourceGroupName,
                        String vmName)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deallocate

        void deallocate​(String resourceGroupName,
                        String vmName,
                        Boolean hibernate,
                        com.azure.core.util.Context context)
        Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        hibernate - Optional parameter to hibernate a virtual machine. (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.
      • generalizeWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> generalizeWithResponseAsync​(String resourceGroupName,
                                                                                  String vmName)
        Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. <br>For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).<br>For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • generalizeAsync

        Mono<Void> generalizeAsync​(String resourceGroupName,
                                   String vmName)
        Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. <br>For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).<br>For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • generalize

        void generalize​(String resourceGroupName,
                        String vmName)
        Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. <br>For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).<br>For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • generalizeWithResponse

        com.azure.core.http.rest.Response<Void> generalizeWithResponse​(String resourceGroupName,
                                                                       String vmName,
                                                                       com.azure.core.util.Context context)
        Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. <br>For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).<br>For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByResourceGroupAsync​(String resourceGroupName,
                                                                                         String filter)
        Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.
        Parameters:
        resourceGroupName - The name of the resource group.
        filter - The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'.
        Returns:
        the List Virtual Machine operation response 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.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByResourceGroupAsync​(String resourceGroupName)
        Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.
        Specified by:
        listByResourceGroupAsync in interface InnerSupportsListing<VirtualMachineInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        the List Virtual Machine operation response 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup​(String resourceGroupName)
        Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.
        Specified by:
        listByResourceGroup in interface InnerSupportsListing<VirtualMachineInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        the List Virtual Machine operation response 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup​(String resourceGroupName,
                                                                                        String filter,
                                                                                        com.azure.core.util.Context context)
        Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.
        Parameters:
        resourceGroupName - The name of the resource group.
        filter - The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'.
        context - The context to associate with this operation.
        Returns:
        the List Virtual Machine operation response 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<VirtualMachineInner> listAsync​(String statusOnly,
                                                                          String filter)
        Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.
        Parameters:
        statusOnly - statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.
        filter - The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'.
        Returns:
        the List Virtual Machine operation response as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listAsync()
        Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.
        Specified by:
        listAsync in interface InnerSupportsListing<VirtualMachineInner>
        Returns:
        the List Virtual Machine operation response 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<VirtualMachineInner> list()
        Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.
        Specified by:
        list in interface InnerSupportsListing<VirtualMachineInner>
        Returns:
        the List Virtual Machine operation response 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<VirtualMachineInner> list​(String statusOnly,
                                                                         String filter,
                                                                         com.azure.core.util.Context context)
        Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.
        Parameters:
        statusOnly - statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.
        filter - The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'.
        context - The context to associate with this operation.
        Returns:
        the List Virtual Machine operation response 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.
      • listAvailableSizesAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineSizeInner> listAvailableSizesAsync​(String resourceGroupName,
                                                                                            String vmName)
        Lists all available virtual machine sizes to which the specified virtual machine can be resized.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the List Virtual Machine operation response 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.
      • listAvailableSizes

        com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes​(String resourceGroupName,
                                                                                           String vmName)
        Lists all available virtual machine sizes to which the specified virtual machine can be resized.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the List Virtual Machine operation response 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.
      • listAvailableSizes

        com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes​(String resourceGroupName,
                                                                                           String vmName,
                                                                                           com.azure.core.util.Context context)
        Lists all available virtual machine sizes to which the specified virtual machine can be resized.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Returns:
        the List Virtual Machine operation response 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 vmName,
                                                                                            Boolean skipShutdown)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginPowerOffAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginPowerOffAsync​(String resourceGroupName,
                                                                                                                                 String vmName,
                                                                                                                                 Boolean skipShutdown)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginPowerOff

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginPowerOff​(String resourceGroupName,
                                                                                                                            String vmName,
                                                                                                                            Boolean skipShutdown)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
        Returns:
        the 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 vmName,
                                                                                                                            Boolean skipShutdown,
                                                                                                                            com.azure.core.util.Context context)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • powerOffAsync

        Mono<Void> powerOffAsync​(String resourceGroupName,
                                 String vmName,
                                 Boolean skipShutdown)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • powerOffAsync

        Mono<Void> powerOffAsync​(String resourceGroupName,
                                 String vmName)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • powerOff

        void powerOff​(String resourceGroupName,
                      String vmName,
                      Boolean skipShutdown)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
        Throws:
        IllegalArgumentException - thrown if parameters fail 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 vmName)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • powerOff

        void powerOff​(String resourceGroupName,
                      String vmName,
                      Boolean skipShutdown,
                      com.azure.core.util.Context context)
        The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        skipShutdown - The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • reapplyWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reapplyWithResponseAsync​(String resourceGroupName,
                                                                                           String vmName)
        The operation to reapply a virtual machine's state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginReapplyAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginReapplyAsync​(String resourceGroupName,
                                                                                                                                String vmName)
        The operation to reapply a virtual machine's state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginReapply

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginReapply​(String resourceGroupName,
                                                                                                                           String vmName)
        The operation to reapply a virtual machine's state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginReapply

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginReapply​(String resourceGroupName,
                                                                                                                           String vmName,
                                                                                                                           com.azure.core.util.Context context)
        The operation to reapply a virtual machine's state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • reapplyAsync

        Mono<Void> reapplyAsync​(String resourceGroupName,
                                String vmName)
        The operation to reapply a virtual machine's state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • reapply

        void reapply​(String resourceGroupName,
                     String vmName)
        The operation to reapply a virtual machine's state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • reapply

        void reapply​(String resourceGroupName,
                     String vmName,
                     com.azure.core.util.Context context)
        The operation to reapply a virtual machine's state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restartWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync​(String resourceGroupName,
                                                                                           String vmName)
        The operation to restart a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginRestartAsync

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

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

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

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

        void restart​(String resourceGroupName,
                     String vmName)
        The operation to restart a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restart

        void restart​(String resourceGroupName,
                     String vmName,
                     com.azure.core.util.Context context)
        The operation to restart a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync​(String resourceGroupName,
                                                                                         String vmName)
        The operation to start a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStartAsync

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

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

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

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

        void start​(String resourceGroupName,
                   String vmName)
        The operation to start a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • start

        void start​(String resourceGroupName,
                   String vmName,
                   com.azure.core.util.Context context)
        The operation to start a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • redeployWithResponseAsync

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

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

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

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

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

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

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

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync​(String resourceGroupName,
                                                                                           String vmName,
                                                                                           VirtualMachineReimageParameters parameters)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Reimage Virtual Machine operation.
        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 vmName,
                                                                                                                                VirtualMachineReimageParameters parameters)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Reimage Virtual Machine operation.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginReimage

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginReimage​(String resourceGroupName,
                                                                                                                           String vmName,
                                                                                                                           VirtualMachineReimageParameters parameters)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Reimage Virtual Machine 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.
      • beginReimage

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginReimage​(String resourceGroupName,
                                                                                                                           String vmName,
                                                                                                                           VirtualMachineReimageParameters parameters,
                                                                                                                           com.azure.core.util.Context context)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Reimage Virtual Machine operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • reimageAsync

        Mono<Void> reimageAsync​(String resourceGroupName,
                                String vmName,
                                VirtualMachineReimageParameters parameters)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Reimage Virtual Machine operation.
        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 vmName)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • reimage

        void reimage​(String resourceGroupName,
                     String vmName,
                     VirtualMachineReimageParameters parameters)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Reimage Virtual Machine 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.
      • reimage

        void reimage​(String resourceGroupName,
                     String vmName)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • reimage

        void reimage​(String resourceGroupName,
                     String vmName,
                     VirtualMachineReimageParameters parameters,
                     com.azure.core.util.Context context)
        Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Reimage Virtual Machine operation.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • retrieveBootDiagnosticsDataWithResponseAsync

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

        Mono<RetrieveBootDiagnosticsDataResultInner> retrieveBootDiagnosticsDataAsync​(String resourceGroupName,
                                                                                      String vmName,
                                                                                      Integer sasUriExpirationTimeInMinutes)
        The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        sasUriExpirationTimeInMinutes - Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. <br><br>NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.
        Returns:
        the SAS URIs of the console screenshot and serial log blobs on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • retrieveBootDiagnosticsDataAsync

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

        RetrieveBootDiagnosticsDataResultInner retrieveBootDiagnosticsData​(String resourceGroupName,
                                                                           String vmName)
        The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        the SAS URIs of the console screenshot and serial log blobs.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • retrieveBootDiagnosticsDataWithResponse

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

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

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

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

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

        Mono<Void> performMaintenanceAsync​(String resourceGroupName,
                                           String vmName)
        The operation to perform maintenance on a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • performMaintenance

        void performMaintenance​(String resourceGroupName,
                                String vmName)
        The operation to perform maintenance on a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • performMaintenance

        void performMaintenance​(String resourceGroupName,
                                String vmName,
                                com.azure.core.util.Context context)
        The operation to perform maintenance on a virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • simulateEvictionWithResponseAsync

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

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

        void simulateEviction​(String resourceGroupName,
                              String vmName)
        The operation to simulate the eviction of spot virtual machine.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • simulateEvictionWithResponse

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

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> assessPatchesWithResponseAsync​(String resourceGroupName,
                                                                                                 String vmName)
        Assess patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        describes the properties of an AssessPatches result 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.
      • beginAssessPatches

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>,​VirtualMachineAssessPatchesResultInner> beginAssessPatches​(String resourceGroupName,
                                                                                                                                                                                                     String vmName,
                                                                                                                                                                                                     com.azure.core.util.Context context)
        Assess patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of describes the properties of an AssessPatches result.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • assessPatchesAsync

        Mono<VirtualMachineAssessPatchesResultInner> assessPatchesAsync​(String resourceGroupName,
                                                                        String vmName)
        Assess patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        describes the properties of an AssessPatches result 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.
      • assessPatches

        VirtualMachineAssessPatchesResultInner assessPatches​(String resourceGroupName,
                                                             String vmName)
        Assess patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        Returns:
        describes the properties of an AssessPatches result.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • assessPatches

        VirtualMachineAssessPatchesResultInner assessPatches​(String resourceGroupName,
                                                             String vmName,
                                                             com.azure.core.util.Context context)
        Assess patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        context - The context to associate with this operation.
        Returns:
        describes the properties of an AssessPatches result.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • installPatchesWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> installPatchesWithResponseAsync​(String resourceGroupName,
                                                                                                  String vmName,
                                                                                                  VirtualMachineInstallPatchesParameters installPatchesInput)
        Installs patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        installPatchesInput - Input for InstallPatches as directly received by the API.
        Returns:
        the result summary of an installation operation 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.
      • beginInstallPatches

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>,​VirtualMachineInstallPatchesResultInner> beginInstallPatches​(String resourceGroupName,
                                                                                                                                                                                                        String vmName,
                                                                                                                                                                                                        VirtualMachineInstallPatchesParameters installPatchesInput,
                                                                                                                                                                                                        com.azure.core.util.Context context)
        Installs patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        installPatchesInput - Input for InstallPatches as directly received by the API.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of the result summary of an installation 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.
      • installPatches

        VirtualMachineInstallPatchesResultInner installPatches​(String resourceGroupName,
                                                               String vmName,
                                                               VirtualMachineInstallPatchesParameters installPatchesInput,
                                                               com.azure.core.util.Context context)
        Installs patches on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        installPatchesInput - Input for InstallPatches as directly received by the API.
        context - The context to associate with this operation.
        Returns:
        the result summary of an installation 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.
      • runCommandWithResponseAsync

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

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

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

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

        Mono<RunCommandResultInner> runCommandAsync​(String resourceGroupName,
                                                    String vmName,
                                                    RunCommandInput parameters)
        Run command on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Run command operation.
        Returns:
        the response body on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • runCommand

        RunCommandResultInner runCommand​(String resourceGroupName,
                                         String vmName,
                                         RunCommandInput parameters)
        Run command on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Run command operation.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • runCommand

        RunCommandResultInner runCommand​(String resourceGroupName,
                                         String vmName,
                                         RunCommandInput parameters,
                                         com.azure.core.util.Context context)
        Run command on the VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        vmName - The name of the virtual machine.
        parameters - Parameters supplied to the Run command operation.
        context - The context to associate with this operation.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.