public interface VirtualMachinesClient extends InnerSupportsGet<VirtualMachineInner>, InnerSupportsListing<VirtualMachineInner>, InnerSupportsDelete<Void>
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
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.
|
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,
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.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginDeallocate(String resourceGroupName,
String vmName)
Shuts down the virtual machine and releases the compute resources.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginDeallocate(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
Shuts down the virtual machine and releases the compute resources.
|
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.
|
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.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginDelete(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
The operation to delete a virtual machine.
|
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.
|
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.
|
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.
|
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.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginPowerOff(String resourceGroupName,
String vmName,
Boolean skipShutdown)
The operation to power off (stop) a virtual machine.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginReimage(String resourceGroupName,
String vmName,
Boolean tempDisk)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginReimage(String resourceGroupName,
String vmName,
Boolean tempDisk,
com.azure.core.util.Context context)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> |
beginReimageAsync(String resourceGroupName,
String vmName,
Boolean tempDisk)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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,
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.
|
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.
|
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.
|
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.
|
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.
|
void |
convertToManagedDisks(String resourceGroupName,
String vmName)
Converts virtual machine disks from blob-based to managed disks.
|
void |
convertToManagedDisks(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
Converts virtual machine disks from blob-based to managed disks.
|
Mono<Void> |
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.
|
VirtualMachineInner |
createOrUpdate(String resourceGroupName,
String vmName,
VirtualMachineInner parameters)
The operation to create or update a virtual machine.
|
VirtualMachineInner |
createOrUpdate(String resourceGroupName,
String vmName,
VirtualMachineInner parameters,
com.azure.core.util.Context context)
The operation to create or update a virtual machine.
|
Mono<VirtualMachineInner> |
createOrUpdateAsync(String resourceGroupName,
String vmName,
VirtualMachineInner parameters)
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)
The operation to create or update a virtual machine.
|
void |
deallocate(String resourceGroupName,
String vmName)
Shuts down the virtual machine and releases the compute resources.
|
void |
deallocate(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
Shuts down the virtual machine and releases the compute resources.
|
Mono<Void> |
deallocateAsync(String resourceGroupName,
String vmName)
Shuts down the virtual machine and releases the compute resources.
|
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> |
deallocateWithResponseAsync(String resourceGroupName,
String vmName)
Shuts down the virtual machine and releases the compute resources.
|
void |
delete(String resourceGroupName,
String vmName)
The operation to delete a virtual machine.
|
void |
delete(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
The operation to delete a virtual machine.
|
Mono<Void> |
deleteAsync(String resourceGroupName,
String vmName)
The operation to delete a virtual machine.
|
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> |
deleteWithResponseAsync(String resourceGroupName,
String vmName)
The operation to delete a virtual machine.
|
void |
generalize(String resourceGroupName,
String vmName)
Sets the OS state of the virtual machine to generalized.
|
Mono<Void> |
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.
|
Mono<com.azure.core.http.rest.Response<Void>> |
generalizeWithResponseAsync(String resourceGroupName,
String vmName)
Sets the OS state of the virtual machine to generalized.
|
VirtualMachineInner |
getByResourceGroup(String resourceGroupName,
String vmName)
Retrieves information about the model view or the instance view of a virtual machine.
|
Mono<VirtualMachineInner> |
getByResourceGroupAsync(String resourceGroupName,
String vmName)
Retrieves information about the model view or the instance view of a virtual machine.
|
Mono<VirtualMachineInner> |
getByResourceGroupAsync(String resourceGroupName,
String vmName,
InstanceViewTypes expand)
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.
|
VirtualMachineInstanceViewInner |
instanceView(String resourceGroupName,
String vmName)
Retrieves information about the run-time state of a virtual machine.
|
Mono<VirtualMachineInstanceViewInner> |
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,
com.azure.core.util.Context context)
Lists all of the virtual machines in the specified subscription.
|
com.azure.core.http.rest.PagedFlux<VirtualMachineInner> |
listAsync()
Lists all of the virtual machines in the specified subscription.
|
com.azure.core.http.rest.PagedFlux<VirtualMachineInner> |
listAsync(String statusOnly)
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,
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.
|
void |
performMaintenance(String resourceGroupName,
String vmName)
The operation to perform maintenance on a virtual machine.
|
void |
performMaintenance(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
The operation to perform maintenance on a virtual machine.
|
Mono<Void> |
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.
|
void |
powerOff(String resourceGroupName,
String vmName)
The operation to power off (stop) a virtual machine.
|
void |
powerOff(String resourceGroupName,
String vmName,
Boolean skipShutdown)
The operation to power off (stop) a virtual machine.
|
void |
powerOff(String resourceGroupName,
String vmName,
Boolean skipShutdown,
com.azure.core.util.Context context)
The operation to power off (stop) a virtual machine.
|
Mono<Void> |
powerOffAsync(String resourceGroupName,
String vmName)
The operation to power off (stop) a virtual machine.
|
Mono<Void> |
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.
|
void |
reapply(String resourceGroupName,
String vmName)
The operation to reapply a virtual machine's state.
|
void |
reapply(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
The operation to reapply a virtual machine's state.
|
Mono<Void> |
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.
|
void |
redeploy(String resourceGroupName,
String vmName)
Shuts down the virtual machine, moves it to a new node, and powers it back on.
|
void |
redeploy(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
Shuts down the virtual machine, moves it to a new node, and powers it back on.
|
Mono<Void> |
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.
|
void |
reimage(String resourceGroupName,
String vmName)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
void |
reimage(String resourceGroupName,
String vmName,
Boolean tempDisk)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
void |
reimage(String resourceGroupName,
String vmName,
Boolean tempDisk,
com.azure.core.util.Context context)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
Mono<Void> |
reimageAsync(String resourceGroupName,
String vmName)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
Mono<Void> |
reimageAsync(String resourceGroupName,
String vmName,
Boolean tempDisk)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> |
reimageWithResponseAsync(String resourceGroupName,
String vmName,
Boolean tempDisk)
Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
|
void |
restart(String resourceGroupName,
String vmName)
The operation to restart a virtual machine.
|
void |
restart(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
The operation to restart a virtual machine.
|
Mono<Void> |
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.
|
RunCommandResultInner |
runCommand(String resourceGroupName,
String vmName,
RunCommandInput parameters)
Run command on the VM.
|
RunCommandResultInner |
runCommand(String resourceGroupName,
String vmName,
RunCommandInput parameters,
com.azure.core.util.Context context)
Run command on the VM.
|
Mono<RunCommandResultInner> |
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.
|
void |
simulateEviction(String resourceGroupName,
String vmName)
The operation to simulate the eviction of spot virtual machine.
|
Mono<Void> |
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.
|
Mono<com.azure.core.http.rest.Response<Void>> |
simulateEvictionWithResponseAsync(String resourceGroupName,
String vmName)
The operation to simulate the eviction of spot virtual machine.
|
void |
start(String resourceGroupName,
String vmName)
The operation to start a virtual machine.
|
void |
start(String resourceGroupName,
String vmName,
com.azure.core.util.Context context)
The operation to start a virtual machine.
|
Mono<Void> |
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.
|
VirtualMachineInner |
update(String resourceGroupName,
String vmName,
VirtualMachineUpdateInner parameters)
The operation to update a virtual machine.
|
VirtualMachineInner |
update(String resourceGroupName,
String vmName,
VirtualMachineUpdateInner parameters,
com.azure.core.util.Context context)
The operation to update a virtual machine.
|
Mono<VirtualMachineInner> |
updateAsync(String resourceGroupName,
String vmName,
VirtualMachineUpdateInner parameters)
The operation to update a virtual machine.
|
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> |
updateWithResponseAsync(String resourceGroupName,
String vmName,
VirtualMachineUpdateInner parameters)
The operation to update a virtual machine.
|
com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByLocationAsync(String location)
location
- The location for which virtual machines under the subscription are queried.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.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByLocation(String location)
location
- The location for which virtual machines under the subscription are queried.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.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByLocation(String location, com.azure.core.util.Context context)
location
- The location for which virtual machines under the subscription are queried.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> captureWithResponseAsync(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineCaptureResultInner>,VirtualMachineCaptureResultInner> beginCaptureAsync(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineCaptureResultInner>,VirtualMachineCaptureResultInner> beginCapture(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.context
- The context to associate with this operation.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.Mono<VirtualMachineCaptureResultInner> captureAsync(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.VirtualMachineCaptureResultInner capture(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.VirtualMachineCaptureResultInner capture(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmName, VirtualMachineInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreateOrUpdateAsync(String resourceGroupName, String vmName, VirtualMachineInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String vmName, VirtualMachineInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String vmName, VirtualMachineInner parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine.context
- The context to associate with this operation.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.Mono<VirtualMachineInner> createOrUpdateAsync(String resourceGroupName, String vmName, VirtualMachineInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine.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.VirtualMachineInner createOrUpdate(String resourceGroupName, String vmName, VirtualMachineInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine.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.VirtualMachineInner createOrUpdate(String resourceGroupName, String vmName, VirtualMachineInner parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine Update.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdateAsync(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine Update.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine Update.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine Update.context
- The context to associate with this operation.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.Mono<VirtualMachineInner> updateAsync(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine Update.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.VirtualMachineInner update(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine Update.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.VirtualMachineInner update(String resourceGroupName, String vmName, VirtualMachineUpdateInner parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Describes a Virtual Machine Update.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<Void> deleteAsync(String resourceGroupName, String vmName)
deleteAsync
in interface InnerSupportsDelete<Void>
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void delete(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void delete(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<VirtualMachineInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String vmName, InstanceViewTypes expand)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.expand
- The expand expression to apply on the operation.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.Mono<VirtualMachineInner> getByResourceGroupAsync(String resourceGroupName, String vmName, InstanceViewTypes expand)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.expand
- The expand expression to apply on the operation.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.Mono<VirtualMachineInner> getByResourceGroupAsync(String resourceGroupName, String vmName)
getByResourceGroupAsync
in interface InnerSupportsGet<VirtualMachineInner>
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.VirtualMachineInner getByResourceGroup(String resourceGroupName, String vmName)
getByResourceGroup
in interface InnerSupportsGet<VirtualMachineInner>
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.http.rest.Response<VirtualMachineInner> getByResourceGroupWithResponse(String resourceGroupName, String vmName, InstanceViewTypes expand, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.expand
- The expand expression to apply on the operation.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<VirtualMachineInstanceViewInner>> instanceViewWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.Mono<VirtualMachineInstanceViewInner> instanceViewAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.VirtualMachineInstanceViewInner instanceView(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.http.rest.Response<VirtualMachineInstanceViewInner> instanceViewWithResponse(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> convertToManagedDisksWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginConvertToManagedDisksAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginConvertToManagedDisks(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<Void> convertToManagedDisksAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void convertToManagedDisks(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void convertToManagedDisks(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deallocateWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeallocateAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeallocate(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeallocate(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<Void> deallocateAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void deallocate(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void deallocate(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Void>> generalizeWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.Mono<Void> generalizeAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void generalize(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.http.rest.Response<Void> generalizeWithResponse(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listByResourceGroupAsync(String resourceGroupName)
listByResourceGroupAsync
in interface InnerSupportsListing<VirtualMachineInner>
resourceGroupName
- The name of the resource group.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.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName)
listByResourceGroup
in interface InnerSupportsListing<VirtualMachineInner>
resourceGroupName
- The name of the resource group.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.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.context
- The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listAsync(String statusOnly)
statusOnly
- statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.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.com.azure.core.http.rest.PagedFlux<VirtualMachineInner> listAsync()
listAsync
in interface InnerSupportsListing<VirtualMachineInner>
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.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list(String statusOnly, com.azure.core.util.Context context)
statusOnly
- statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.context
- The context to associate with this operation.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.com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list()
list
in interface InnerSupportsListing<VirtualMachineInner>
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.com.azure.core.http.rest.PagedFlux<VirtualMachineSizeInner> listAvailableSizesAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> powerOffWithResponseAsync(String resourceGroupName, String vmName, Boolean skipShutdown)
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.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginPowerOffAsync(String resourceGroupName, String vmName, Boolean skipShutdown)
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.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPowerOff(String resourceGroupName, String vmName, Boolean skipShutdown)
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.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.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)
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.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.Mono<Void> powerOffAsync(String resourceGroupName, String vmName, Boolean skipShutdown)
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.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.Mono<Void> powerOffAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void powerOff(String resourceGroupName, String vmName, Boolean skipShutdown)
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.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.void powerOff(String resourceGroupName, String vmName, Boolean skipShutdown, com.azure.core.util.Context context)
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.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.void powerOff(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reapplyWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.ApiErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginReapplyAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.ApiErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginReapply(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.ApiErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ApiErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Mono<Void> reapplyAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.ApiErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void reapply(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.ApiErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void reapply(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ApiErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRestartAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<Void> restartAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void restart(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void restart(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginStartAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<Void> startAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void start(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void start(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeployAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<Void> redeployAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void redeploy(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void redeploy(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync(String resourceGroupName, String vmName, Boolean tempDisk)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.tempDisk
- Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage
parameter is only supported for VM/VMSS with Ephemeral OS disk.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginReimageAsync(String resourceGroupName, String vmName, Boolean tempDisk)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.tempDisk
- Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage
parameter is only supported for VM/VMSS with Ephemeral OS disk.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginReimage(String resourceGroupName, String vmName, Boolean tempDisk)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.tempDisk
- Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage
parameter is only supported for VM/VMSS with Ephemeral OS disk.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginReimage(String resourceGroupName, String vmName, Boolean tempDisk, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.tempDisk
- Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage
parameter is only supported for VM/VMSS with Ephemeral OS disk.context
- The context to associate with this operation.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.Mono<Void> reimageAsync(String resourceGroupName, String vmName, Boolean tempDisk)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.tempDisk
- Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage
parameter is only supported for VM/VMSS with Ephemeral OS disk.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.Mono<Void> reimageAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void reimage(String resourceGroupName, String vmName, Boolean tempDisk)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.tempDisk
- Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage
parameter is only supported for VM/VMSS with Ephemeral OS disk.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.void reimage(String resourceGroupName, String vmName, Boolean tempDisk, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.tempDisk
- Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage
parameter is only supported for VM/VMSS with Ephemeral OS disk.context
- The context to associate with this operation.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.void reimage(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginPerformMaintenanceAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPerformMaintenance(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<Void> performMaintenanceAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void performMaintenance(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void performMaintenance(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Void>> simulateEvictionWithResponseAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.Mono<Void> simulateEvictionAsync(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.void simulateEviction(String resourceGroupName, String vmName)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.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.com.azure.core.http.rest.Response<Void> simulateEvictionWithResponse(String resourceGroupName, String vmName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.context
- The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> runCommandWithResponseAsync(String resourceGroupName, String vmName, RunCommandInput parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<RunCommandResultInner>,RunCommandResultInner> beginRunCommandAsync(String resourceGroupName, String vmName, RunCommandInput parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RunCommandResultInner>,RunCommandResultInner> beginRunCommand(String resourceGroupName, String vmName, RunCommandInput parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.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)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.context
- The context to associate with this operation.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.Mono<RunCommandResultInner> runCommandAsync(String resourceGroupName, String vmName, RunCommandInput parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.RunCommandResultInner runCommand(String resourceGroupName, String vmName, RunCommandInput parameters)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.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.RunCommandResultInner runCommand(String resourceGroupName, String vmName, RunCommandInput parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.vmName
- The name of the virtual machine.parameters
- Capture Virtual Machine parameters.context
- The context to associate with this operation.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.Copyright © 2020 Microsoft Corporation. All rights reserved.