Interface VirtualMachinesClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<VirtualMachineInner>,InnerSupportsListing<VirtualMachineInner>
public interface VirtualMachinesClient
extends InnerSupportsGet<VirtualMachineInner>, InnerSupportsListing<VirtualMachineInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in VirtualMachinesClient.
-
Method Summary
Modifier and TypeMethodDescriptionassessPatches(String resourceGroupName, String vmName) Assess patches on the VM.assessPatches(String resourceGroupName, String vmName, com.azure.core.util.Context context) Assess patches on the VM.assessPatchesAsync(String resourceGroupName, String vmName) Assess patches on the VM.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> assessPatchesWithResponseAsync(String resourceGroupName, String vmName) Assess patches on the VM.attachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.attachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from the virtual machine.attachDetachDataDisksAsync(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> attachDetachDataDisksWithResponseAsync(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>, VirtualMachineAssessPatchesResultInner> beginAssessPatches(String resourceGroupName, String vmName) Assess patches on the VM.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>, VirtualMachineAssessPatchesResultInner> beginAssessPatchesAsync(String resourceGroupName, String vmName) Assess patches on the VM.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from the virtual machine.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisksAsync(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.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.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.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.beginConvertToManagedDisks(String resourceGroupName, String vmName) Converts virtual machine disks from blob-based to managed disks.beginConvertToManagedDisks(String resourceGroupName, String vmName, com.azure.core.util.Context context) Converts virtual machine disks from blob-based to managed disks.beginConvertToManagedDisksAsync(String resourceGroupName, String vmName) Converts virtual machine disks from blob-based to managed disks.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>, VirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String vmName, VirtualMachineInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) The operation to create or update a virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInner>, VirtualMachineInner> beginCreateOrUpdateAsync(String resourceGroupName, String vmName, VirtualMachineInner parameters, String ifMatch, String ifNoneMatch) The operation to create or update a virtual machine.beginDeallocate(String resourceGroupName, String vmName) Shuts down the virtual machine and releases the compute resources.beginDeallocate(String resourceGroupName, String vmName, Boolean hibernate, com.azure.core.util.Context context) Shuts down the virtual machine and releases the compute resources.beginDeallocateAsync(String resourceGroupName, String vmName) Shuts down the virtual machine and releases the compute resources.beginDeallocateAsync(String resourceGroupName, String vmName, Boolean hibernate) Shuts down the virtual machine and releases the compute resources.beginDelete(String resourceGroupName, String vmName) The operation to delete a virtual machine.beginDelete(String resourceGroupName, String vmName, Boolean forceDeletion, com.azure.core.util.Context context) The operation to delete a virtual machine.beginDeleteAsync(String resourceGroupName, String vmName) The operation to delete a virtual machine.beginDeleteAsync(String resourceGroupName, String vmName, Boolean forceDeletion) The operation to delete a virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>, VirtualMachineInstallPatchesResultInner> beginInstallPatches(String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput) Installs patches on the VM.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>, VirtualMachineInstallPatchesResultInner> beginInstallPatchesAsync(String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput) Installs patches on the VM.beginPerformMaintenance(String resourceGroupName, String vmName) The operation to perform maintenance on a virtual machine.beginPerformMaintenance(String resourceGroupName, String vmName, com.azure.core.util.Context context) The operation to perform maintenance on a virtual machine.beginPerformMaintenanceAsync(String resourceGroupName, String vmName) The operation to perform maintenance on a virtual machine.beginPowerOff(String resourceGroupName, String vmName) The operation to power off (stop) a virtual machine.beginPowerOff(String resourceGroupName, String vmName, Boolean skipShutdown, com.azure.core.util.Context context) The operation to power off (stop) a virtual machine.beginPowerOffAsync(String resourceGroupName, String vmName) The operation to power off (stop) a virtual machine.beginPowerOffAsync(String resourceGroupName, String vmName, Boolean skipShutdown) The operation to power off (stop) a virtual machine.beginReapply(String resourceGroupName, String vmName) The operation to reapply a virtual machine's state.beginReapply(String resourceGroupName, String vmName, com.azure.core.util.Context context) The operation to reapply a virtual machine's state.beginReapplyAsync(String resourceGroupName, String vmName) The operation to reapply a virtual machine's state.beginRedeploy(String resourceGroupName, String vmName) Shuts down the virtual machine, moves it to a new node, and powers it back on.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.beginRedeployAsync(String resourceGroupName, String vmName) Shuts down the virtual machine, moves it to a new node, and powers it back on.beginReimage(String resourceGroupName, String vmName) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.beginReimage(String resourceGroupName, String vmName, VirtualMachineReimageParameters parameters, com.azure.core.util.Context context) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.beginReimageAsync(String resourceGroupName, String vmName) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.beginReimageAsync(String resourceGroupName, String vmName, VirtualMachineReimageParameters parameters) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.beginRestart(String resourceGroupName, String vmName) The operation to restart a virtual machine.beginRestart(String resourceGroupName, String vmName, com.azure.core.util.Context context) The operation to restart a virtual machine.beginRestartAsync(String resourceGroupName, String vmName) The operation to restart a virtual machine.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.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.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.beginStart(String resourceGroupName, String vmName) The operation to start a virtual machine.beginStart(String resourceGroupName, String vmName, com.azure.core.util.Context context) The operation to start a virtual machine.beginStartAsync(String resourceGroupName, String vmName) The operation to start a virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>, VirtualMachineInner> beginUpdate(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) The operation to update a virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInner>, VirtualMachineInner> beginUpdateAsync(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters, String ifMatch, String ifNoneMatch) The operation to update a virtual machine.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.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.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.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.voidconvertToManagedDisks(String resourceGroupName, String vmName) Converts virtual machine disks from blob-based to managed disks.voidconvertToManagedDisks(String resourceGroupName, String vmName, com.azure.core.util.Context context) Converts virtual machine disks from blob-based to managed disks.convertToManagedDisksAsync(String resourceGroupName, String vmName) Converts virtual machine disks from blob-based to managed disks.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> convertToManagedDisksWithResponseAsync(String resourceGroupName, String vmName) Converts virtual machine disks from blob-based to managed disks.createOrUpdate(String resourceGroupName, String vmName, VirtualMachineInner parameters) The operation to create or update a virtual machine.createOrUpdate(String resourceGroupName, String vmName, VirtualMachineInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) The operation to create or update a virtual machine.createOrUpdateAsync(String resourceGroupName, String vmName, VirtualMachineInner parameters) The operation to create or update a virtual machine.createOrUpdateAsync(String resourceGroupName, String vmName, VirtualMachineInner parameters, String ifMatch, String ifNoneMatch) The operation to create or update a virtual machine.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmName, VirtualMachineInner parameters, String ifMatch, String ifNoneMatch) The operation to create or update a virtual machine.voiddeallocate(String resourceGroupName, String vmName) Shuts down the virtual machine and releases the compute resources.voiddeallocate(String resourceGroupName, String vmName, Boolean hibernate, com.azure.core.util.Context context) Shuts down the virtual machine and releases the compute resources.deallocateAsync(String resourceGroupName, String vmName) Shuts down the virtual machine and releases the compute resources.deallocateAsync(String resourceGroupName, String vmName, Boolean hibernate) Shuts down the virtual machine and releases the compute resources.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.voidThe operation to delete a virtual machine.voiddelete(String resourceGroupName, String vmName, Boolean forceDeletion, com.azure.core.util.Context context) The operation to delete a virtual machine.deleteAsync(String resourceGroupName, String vmName) The operation to delete a virtual machine.deleteAsync(String resourceGroupName, String vmName, Boolean forceDeletion) The operation to delete a virtual machine.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmName, Boolean forceDeletion) The operation to delete a virtual machine.voidgeneralize(String resourceGroupName, String vmName) Sets the OS state of the virtual machine to generalized.generalizeAsync(String resourceGroupName, String vmName) Sets the OS state of the virtual machine to generalized.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.generalizeWithResponseAsync(String resourceGroupName, String vmName) Sets the OS state of the virtual machine to generalized.getByResourceGroup(String resourceGroupName, String vmName) Retrieves information about the model view or the instance view of a virtual machine.getByResourceGroupAsync(String resourceGroupName, String vmName) Retrieves information about the model view or the instance view of a virtual machine.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.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.installPatches(String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput) Installs patches on the VM.installPatches(String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput, com.azure.core.util.Context context) Installs patches on the VM.installPatchesAsync(String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput) Installs patches on the VM.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> installPatchesWithResponseAsync(String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput) Installs patches on the VM.instanceView(String resourceGroupName, String vmName) Retrieves information about the run-time state of a virtual machine.instanceViewAsync(String resourceGroupName, String vmName) Retrieves information about the run-time state of a virtual machine.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.Mono<com.azure.core.http.rest.Response<VirtualMachineInstanceViewInner>> instanceViewWithResponseAsync(String resourceGroupName, String vmName) Retrieves information about the run-time state of a virtual machine.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list()Lists all of the virtual machines in the specified subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list(String statusOnly, String filter, ExpandTypesForListVMs expand, com.azure.core.util.Context context) Lists all of the virtual machines in the specified subscription.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> Lists all of the virtual machines in the specified subscription.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listAsync(String statusOnly, String filter, ExpandTypesForListVMs expand) Lists all of the virtual machines in the specified subscription.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.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.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.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByLocation(String location) Gets all the virtual machines under the specified subscription for the specified location.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.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByLocationAsync(String location) Gets all the virtual machines under the specified subscription for the specified location.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName) Lists all of the virtual machines in the specified resource group.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName, String filter, ExpandTypeForListVMs expand, com.azure.core.util.Context context) Lists all of the virtual machines in the specified resource group.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByResourceGroupAsync(String resourceGroupName) Lists all of the virtual machines in the specified resource group.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByResourceGroupAsync(String resourceGroupName, String filter, ExpandTypeForListVMs expand) Lists all of the virtual machines in the specified resource group.voidperformMaintenance(String resourceGroupName, String vmName) The operation to perform maintenance on a virtual machine.voidperformMaintenance(String resourceGroupName, String vmName, com.azure.core.util.Context context) The operation to perform maintenance on a virtual machine.performMaintenanceAsync(String resourceGroupName, String vmName) The operation to perform maintenance on a virtual machine.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync(String resourceGroupName, String vmName) The operation to perform maintenance on a virtual machine.voidThe operation to power off (stop) a virtual machine.voidpowerOff(String resourceGroupName, String vmName, Boolean skipShutdown, com.azure.core.util.Context context) The operation to power off (stop) a virtual machine.powerOffAsync(String resourceGroupName, String vmName) The operation to power off (stop) a virtual machine.powerOffAsync(String resourceGroupName, String vmName, Boolean skipShutdown) The operation to power off (stop) a virtual machine.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.voidThe operation to reapply a virtual machine's state.voidThe operation to reapply a virtual machine's state.reapplyAsync(String resourceGroupName, String vmName) The operation to reapply a virtual machine's state.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reapplyWithResponseAsync(String resourceGroupName, String vmName) The operation to reapply a virtual machine's state.voidShuts down the virtual machine, moves it to a new node, and powers it back on.voidShuts down the virtual machine, moves it to a new node, and powers it back on.redeployAsync(String resourceGroupName, String vmName) Shuts down the virtual machine, moves it to a new node, and powers it back on.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.voidReimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.voidreimage(String resourceGroupName, String vmName, VirtualMachineReimageParameters parameters, com.azure.core.util.Context context) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.reimageAsync(String resourceGroupName, String vmName) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.reimageAsync(String resourceGroupName, String vmName, VirtualMachineReimageParameters parameters) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync(String resourceGroupName, String vmName, VirtualMachineReimageParameters parameters) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state.voidThe operation to restart a virtual machine.voidThe operation to restart a virtual machine.restartAsync(String resourceGroupName, String vmName) The operation to restart a virtual machine.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String vmName) The operation to restart a virtual machine.retrieveBootDiagnosticsData(String resourceGroupName, String vmName) The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.retrieveBootDiagnosticsDataAsync(String resourceGroupName, String vmName) The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.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.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.runCommand(String resourceGroupName, String vmName, RunCommandInput parameters) Run command on the VM.runCommand(String resourceGroupName, String vmName, RunCommandInput parameters, com.azure.core.util.Context context) Run command on the VM.runCommandAsync(String resourceGroupName, String vmName, RunCommandInput parameters) Run command on the VM.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> runCommandWithResponseAsync(String resourceGroupName, String vmName, RunCommandInput parameters) Run command on the VM.voidsimulateEviction(String resourceGroupName, String vmName) The operation to simulate the eviction of spot virtual machine.simulateEvictionAsync(String resourceGroupName, String vmName) The operation to simulate the eviction of spot virtual machine.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.simulateEvictionWithResponseAsync(String resourceGroupName, String vmName) The operation to simulate the eviction of spot virtual machine.voidThe operation to start a virtual machine.voidThe operation to start a virtual machine.startAsync(String resourceGroupName, String vmName) The operation to start a virtual machine.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String vmName) The operation to start a virtual machine.update(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters) The operation to update a virtual machine.update(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) The operation to update a virtual machine.updateAsync(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters) The operation to update a virtual machine.updateAsync(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters, String ifMatch, String ifNoneMatch) The operation to update a virtual machine.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters, String ifMatch, String ifNoneMatch) The operation to update a virtual machine.
-
Method Details
-
listByLocationAsync
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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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, String ifMatch, String ifNoneMatch) 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- describes a Virtual Machine along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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, String ifMatch, String ifNoneMatch) 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- the
PollerFluxfor 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.
-
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
PollerFluxfor 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
SyncPollerfor 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, String ifMatch, String ifNoneMatch, 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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, String ifMatch, String ifNoneMatch) 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- describes a Virtual Machine 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.
-
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, String ifMatch, String ifNoneMatch, 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.context- The context to associate with this operation.- Returns:
- describes a Virtual Machine.
- Throws:
IllegalArgumentException- thrown if parameters fail 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, String ifMatch, String ifNoneMatch) 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- describes a Virtual Machine along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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, String ifMatch, String ifNoneMatch) 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- the
PollerFluxfor 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.
-
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
PollerFluxfor 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
SyncPollerfor 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, String ifMatch, String ifNoneMatch, 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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, String ifMatch, String ifNoneMatch) 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- describes a Virtual Machine on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<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, String ifMatch, String ifNoneMatch, 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.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.context- The context to associate with this operation.- Returns:
- describes a Virtual Machine.
- Throws:
IllegalArgumentException- thrown if parameters fail 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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String vmName) The operation to delete a virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- the
PollerFluxfor 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) The operation to delete a virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- the
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
The operation to delete a virtual machine.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- A
Monothat 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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
Retrieves information about the model view or the instance view of a virtual machine.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<VirtualMachineInner>- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- 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.
-
getByResourceGroup
Retrieves information about the model view or the instance view of a virtual machine.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<VirtualMachineInner>- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- 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.
-
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
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.
-
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.
-
instanceView
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.
-
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
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.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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.- Returns:
- the
PollerFluxfor 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.
-
beginDeallocateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeallocateAsync(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:
- the
PollerFluxfor 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) 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:
- the
SyncPollerfor 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.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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
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.- Returns:
- A
Monothat 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
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
Monothat 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
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.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. 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). 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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. 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). 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
Monothat 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.
-
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. 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). 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.
-
generalize
Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. 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). 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByResourceGroupAsync(String resourceGroupName, String filter, ExpandTypeForListVMs expand) 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}'.expand- The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified.- 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:
listByResourceGroupAsyncin interfaceInnerSupportsListing<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:
listByResourceGroupin interfaceInnerSupportsListing<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, ExpandTypeForListVMs expand, 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}'.expand- The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified.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, ExpandTypesForListVMs expand) 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}'.expand- The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified.- 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:
listAsyncin interfaceInnerSupportsListing<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:
listin interfaceInnerSupportsListing<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, ExpandTypesForListVMs expand, 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}'.expand- The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified.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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPowerOffAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginPowerOffAsync(String resourceGroupName, String 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:
- the
PollerFluxfor 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) 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:
- the
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
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
Monothat 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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
The operation to restart a virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- A
Monothat 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
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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
The operation to start a virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- A
Monothat 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
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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
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
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 (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- 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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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 (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- 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
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimageAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginReimageAsync(String resourceGroupName, String vmName) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- the
PollerFluxfor 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) Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- the
SyncPollerfor 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 (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- 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
SyncPollerfor 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 (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- 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
Monothat 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
Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.- Returns:
- A
Monothat 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
Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- 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 (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.- 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. **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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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.
-
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. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.context- The context to associate with this operation.- Returns:
- the SAS URIs of the console screenshot and serial log blobs along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
retrieveBootDiagnosticsData
RetrieveBootDiagnosticsDataResultInner retrieveBootDiagnosticsData(String resourceGroupName, String 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.
-
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail 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
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
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
simulateEvictionWithResponse
com.azure.core.http.rest.Response<Void> simulateEvictionWithResponse(String resourceGroupName, String 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.
-
simulateEviction
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.
-
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginAssessPatchesAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatchesAsync(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:
- the
PollerFluxfor 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.
-
beginAssessPatches
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatches(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:
- the
SyncPollerfor 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.
-
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
SyncPollerfor 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
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
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginInstallPatchesAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatchesAsync(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
PollerFluxfor 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.
-
beginInstallPatches
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatches(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
SyncPollerfor 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.
-
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
SyncPollerfor 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.
-
installPatchesAsync
Mono<VirtualMachineInstallPatchesResultInner> installPatchesAsync(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 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.
-
installPatches
VirtualMachineInstallPatchesResultInner installPatches(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.
- Throws:
IllegalArgumentException- thrown if parameters fail 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.
-
attachDetachDataDisksWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> attachDetachDataDisksWithResponseAsync(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on the virtual machine.- Returns:
- specifies the storage settings for the virtual machine disks along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginAttachDetachDataDisksAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<StorageProfile>,StorageProfile> beginAttachDetachDataDisksAsync(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on the virtual machine.- Returns:
- the
PollerFluxfor polling of specifies the storage settings for the virtual machine disks. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginAttachDetachDataDisks
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>,StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on the virtual machine.- Returns:
- the
SyncPollerfor polling of specifies the storage settings for the virtual machine disks. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginAttachDetachDataDisks
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>,StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from the virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies the storage settings for the virtual machine disks. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
attachDetachDataDisksAsync
Mono<StorageProfile> attachDetachDataDisksAsync(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on the virtual machine.- Returns:
- specifies the storage settings for the virtual machine disks on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
attachDetachDataDisks
StorageProfile attachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from the virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on the virtual machine.- Returns:
- specifies the storage settings for the virtual machine disks.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
attachDetachDataDisks
StorageProfile attachDetachDataDisks(String resourceGroupName, String vmName, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from the virtual machine.- Parameters:
resourceGroupName- The name of the resource group.vmName- The name of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on the virtual machine.context- The context to associate with this operation.- Returns:
- specifies the storage settings for the virtual machine disks.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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.
-