Interface VirtualMachineScaleSetVMsClient
public interface VirtualMachineScaleSetVMsClient
An instance of this class provides access to all the operations defined in VirtualMachineScaleSetVMsClient.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.voidapproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.approveRollingUpgradeAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> approveRollingUpgradeWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.attachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.attachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from a virtual machine in a VM scale set.attachDetachDataDisksAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> attachDetachDataDisksWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.beginApproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.beginApproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.beginApproveRollingUpgradeAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from a virtual machine in a VM scale set.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<StorageProfile>, StorageProfile> beginAttachDetachDataDisksAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.beginDeallocate(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set.beginDeallocate(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Deallocates a specific virtual machine in a VM scale set.beginDeallocateAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set.beginDelete(String resourceGroupName, String vmScaleSetName, String instanceId) Deletes a virtual machine from a VM scale set.beginDelete(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion, com.azure.core.util.Context context) Deletes a virtual machine from a VM scale set.beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deletes a virtual machine from a VM scale set.beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion) Deletes a virtual machine from a VM scale set.beginPerformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.beginPerformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Performs maintenance on a virtual machine in a VM scale set.beginPerformMaintenanceAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.beginPowerOff(String resourceGroupName, String vmScaleSetName, String instanceId) Power off (stop) a virtual machine in a VM scale set.beginPowerOff(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown, com.azure.core.util.Context context) Power off (stop) a virtual machine in a VM scale set.beginPowerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Power off (stop) a virtual machine in a VM scale set.beginPowerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown) Power off (stop) a virtual machine in a VM scale set.beginRedeploy(String resourceGroupName, String vmScaleSetName, String instanceId) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.beginRedeploy(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.beginRedeployAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.beginReimage(String resourceGroupName, String vmScaleSetName, String instanceId) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.beginReimage(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput, com.azure.core.util.Context context) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.beginReimageAll(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance.beginReimageAll(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance.beginReimageAllAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance.beginReimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.beginReimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.beginRestart(String resourceGroupName, String vmScaleSetName, String instanceId) Restarts a virtual machine in a VM scale set.beginRestart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Restarts a virtual machine in a VM scale set.beginRestartAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Restarts a virtual machine in a VM scale set.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RunCommandResultInner>, RunCommandResultInner> beginRunCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RunCommandResultInner>, RunCommandResultInner> beginRunCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters, com.azure.core.util.Context context) Run command on a virtual machine in a VM scale set.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<RunCommandResultInner>, RunCommandResultInner> beginRunCommandAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.beginStart(String resourceGroupName, String vmScaleSetName, String instanceId) Starts a virtual machine in a VM scale set.beginStart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Starts a virtual machine in a VM scale set.beginStartAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Starts a virtual machine in a VM scale set.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Updates a virtual machine of a VM scale set.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>, VirtualMachineScaleSetVMInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch) Updates a virtual machine of a VM scale set.voiddeallocate(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set.voiddeallocate(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Deallocates a specific virtual machine in a VM scale set.deallocateAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deallocateWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set.voidDeletes a virtual machine from a VM scale set.voiddelete(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion, com.azure.core.util.Context context) Deletes a virtual machine from a VM scale set.deleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deletes a virtual machine from a VM scale set.deleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion) Deletes a virtual machine from a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion) Deletes a virtual machine from a VM scale set.Gets a virtual machine from a VM scale set.Gets a virtual machine from a VM scale set.getInstanceView(String resourceGroupName, String vmScaleSetName, String instanceId) Gets the status of a virtual machine from a VM scale set.getInstanceViewAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Gets the status of a virtual machine from a VM scale set.com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInstanceViewInner> getInstanceViewWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Gets the status of a virtual machine from a VM scale set.Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInstanceViewInner>> getInstanceViewWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Gets the status of a virtual machine from a VM scale set.com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInner> getWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, InstanceViewTypes expand, com.azure.core.util.Context context) Gets a virtual machine from a VM scale set.Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInner>> getWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, InstanceViewTypes expand) Gets a virtual machine from a VM scale set.com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVMInner> Gets a list of all virtual machines in a VM scale sets.com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVMInner> list(String resourceGroupName, String virtualMachineScaleSetName, String filter, String select, String expand, com.azure.core.util.Context context) Gets a list of all virtual machines in a VM scale sets.com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVMInner> Gets a list of all virtual machines in a VM scale sets.com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVMInner> listAsync(String resourceGroupName, String virtualMachineScaleSetName, String filter, String select, String expand) Gets a list of all virtual machines in a VM scale sets.voidperformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.voidperformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Performs maintenance on a virtual machine in a VM scale set.performMaintenanceAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.voidPower off (stop) a virtual machine in a VM scale set.voidpowerOff(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown, com.azure.core.util.Context context) Power off (stop) a virtual machine in a VM scale set.powerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Power off (stop) a virtual machine in a VM scale set.powerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown) Power off (stop) a virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> powerOffWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown) Power off (stop) a virtual machine in a VM scale set.voidShuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.voidredeploy(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.redeployAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.voidReimages (upgrade the operating system) a specific virtual machine in a VM scale set.voidreimage(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput, com.azure.core.util.Context context) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.voidreimageAll(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance.voidreimageAll(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance.reimageAllAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageAllWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance.reimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.reimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.voidRestarts a virtual machine in a VM scale set.voidrestart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Restarts a virtual machine in a VM scale set.restartAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Restarts a virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Restarts a virtual machine in a VM scale set.retrieveBootDiagnosticsData(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.retrieveBootDiagnosticsDataAsync(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.com.azure.core.http.rest.Response<RetrieveBootDiagnosticsDataResultInner> retrieveBootDiagnosticsDataWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, Integer sasUriExpirationTimeInMinutes, com.azure.core.util.Context context) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<RetrieveBootDiagnosticsDataResultInner>> retrieveBootDiagnosticsDataWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Integer sasUriExpirationTimeInMinutes) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.runCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.runCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters, com.azure.core.util.Context context) Run command on a virtual machine in a VM scale set.runCommandAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> runCommandWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.voidsimulateEviction(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to simulate the eviction of spot virtual machine in a VM scale set.simulateEvictionAsync(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to simulate the eviction of spot virtual machine in a VM scale set.com.azure.core.http.rest.Response<Void> simulateEvictionWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) The operation to simulate the eviction of spot virtual machine in a VM scale set.simulateEvictionWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to simulate the eviction of spot virtual machine in a VM scale set.voidStarts a virtual machine in a VM scale set.voidstart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Starts a virtual machine in a VM scale set.startAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Starts a virtual machine in a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Starts a virtual machine in a VM scale set.update(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.update(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Updates a virtual machine of a VM scale set.updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch) Updates a virtual machine of a VM scale set.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch) Updates a virtual machine of a VM scale set.
-
Method Details
-
reimageWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.vmScaleSetVMReimageInput- Parameters for the Reimaging Virtual machine in ScaleSet.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimageAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginReimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.vmScaleSetVMReimageInput- Parameters for the Reimaging Virtual machine in ScaleSet.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimageAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginReimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimage
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginReimage(String resourceGroupName, String vmScaleSetName, String instanceId) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimage
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginReimage(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput, com.azure.core.util.Context context) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.vmScaleSetVMReimageInput- Parameters for the Reimaging Virtual machine in ScaleSet.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimageAsync
Mono<Void> reimageAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.vmScaleSetVMReimageInput- Parameters for the Reimaging Virtual machine in ScaleSet.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimageAsync
Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimage
Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimage
void reimage(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput, com.azure.core.util.Context context) Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.vmScaleSetVMReimageInput- Parameters for the Reimaging Virtual machine in ScaleSet.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimageAllWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageAllWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimageAllAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginReimageAllAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimageAll
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginReimageAll(String resourceGroupName, String vmScaleSetName, String instanceId) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginReimageAll
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginReimageAll(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimageAllAsync
Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimageAll
Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
reimageAll
void reimageAll(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
approveRollingUpgradeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> approveRollingUpgradeWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginApproveRollingUpgradeAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginApproveRollingUpgradeAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginApproveRollingUpgrade
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginApproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginApproveRollingUpgrade
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginApproveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
approveRollingUpgradeAsync
Mono<Void> approveRollingUpgradeAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
approveRollingUpgrade
Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
approveRollingUpgrade
void approveRollingUpgrade(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deallocateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deallocateWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeallocateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeallocateAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeallocate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeallocate(String resourceGroupName, String vmScaleSetName, String instanceId) Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeallocate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeallocate(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deallocateAsync
Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deallocate
Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deallocate
void deallocate(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- describes a virtual machine scale set virtual machine along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>,VirtualMachineScaleSetVMInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- the
PollerFluxfor polling of describes a virtual machine scale set virtual machine. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>,VirtualMachineScaleSetVMInner> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.- Returns:
- the
PollerFluxfor polling of describes a virtual machine scale set virtual machine. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>,VirtualMachineScaleSetVMInner> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.- Returns:
- the
SyncPollerfor polling of describes a virtual machine scale set virtual machine. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineScaleSetVMInner>,VirtualMachineScaleSetVMInner> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of describes a virtual machine scale set virtual machine. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<VirtualMachineScaleSetVMInner> updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.- Returns:
- describes a virtual machine scale set virtual machine on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<VirtualMachineScaleSetVMInner> updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.- Returns:
- describes a virtual machine scale set virtual machine on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
VirtualMachineScaleSetVMInner update(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.- Returns:
- describes a virtual machine scale set virtual machine.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
VirtualMachineScaleSetVMInner update(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Updates a virtual machine of a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set where the extension should be create or updated.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Update Virtual Machine Scale Sets VM operation.ifMatch- The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.ifNoneMatch- Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported.context- The context to associate with this operation.- Returns:
- describes a virtual machine scale set virtual machine.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion) Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.forceDeletion- Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion) Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.forceDeletion- Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String vmScaleSetName, String instanceId) Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion, com.azure.core.util.Context context) Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.forceDeletion- Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion) Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.forceDeletion- Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean forceDeletion, com.azure.core.util.Context context) Deletes a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.forceDeletion- Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview).context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInner>> getWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, InstanceViewTypes expand) Gets a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.expand- The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. 'resiliencyView' will retrieve the instance view of the Virtual machine (if applicable) and include 'resilientVMDeletionStatus' as part of it.- Returns:
- a virtual machine from a VM scale set along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<VirtualMachineScaleSetVMInner> getAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Gets a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- a virtual machine from a VM scale set on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInner> getWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, InstanceViewTypes expand, com.azure.core.util.Context context) Gets a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.expand- The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. 'resiliencyView' will retrieve the instance view of the Virtual machine (if applicable) and include 'resilientVMDeletionStatus' as part of it.context- The context to associate with this operation.- Returns:
- a virtual machine from a VM scale set along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
VirtualMachineScaleSetVMInner get(String resourceGroupName, String vmScaleSetName, String instanceId) Gets a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- a virtual machine from a VM scale set.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getInstanceViewWithResponseAsync
Mono<com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInstanceViewInner>> getInstanceViewWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Gets the status of a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the status of a virtual machine from a VM scale set along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getInstanceViewAsync
Mono<VirtualMachineScaleSetVMInstanceViewInner> getInstanceViewAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Gets the status of a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the status of a virtual machine from a VM scale set on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getInstanceViewWithResponse
com.azure.core.http.rest.Response<VirtualMachineScaleSetVMInstanceViewInner> getInstanceViewWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Gets the status of a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the status of a virtual machine from a VM scale set along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getInstanceView
VirtualMachineScaleSetVMInstanceViewInner getInstanceView(String resourceGroupName, String vmScaleSetName, String instanceId) Gets the status of a virtual machine from a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the status of a virtual machine from a VM scale set.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVMInner> listAsync(String resourceGroupName, String virtualMachineScaleSetName, String filter, String select, String expand) Gets a list of all virtual machines in a VM scale sets.- Parameters:
resourceGroupName- The name of the resource group.virtualMachineScaleSetName- The name of the VM scale set.filter- The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.select- The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'.expand- The expand expression to apply to the operation. Allowed values are 'instanceView'.- Returns:
- a list of all virtual machines in a VM scale sets as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVMInner> listAsync(String resourceGroupName, String virtualMachineScaleSetName) Gets a list of all virtual machines in a VM scale sets.- Parameters:
resourceGroupName- The name of the resource group.virtualMachineScaleSetName- The name of the VM scale set.- Returns:
- a list of all virtual machines in a VM scale sets as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVMInner> list(String resourceGroupName, String virtualMachineScaleSetName) Gets a list of all virtual machines in a VM scale sets.- Parameters:
resourceGroupName- The name of the resource group.virtualMachineScaleSetName- The name of the VM scale set.- Returns:
- a list of all virtual machines in a VM scale sets as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVMInner> list(String resourceGroupName, String virtualMachineScaleSetName, String filter, String select, String expand, com.azure.core.util.Context context) Gets a list of all virtual machines in a VM scale sets.- Parameters:
resourceGroupName- The name of the resource group.virtualMachineScaleSetName- The name of the VM scale set.filter- The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.select- The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'.expand- The expand expression to apply to the operation. Allowed values are 'instanceView'.context- The context to associate with this operation.- Returns:
- a list of all virtual machines in a VM scale sets as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
powerOffWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> powerOffWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown) Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.skipShutdown- The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPowerOffAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginPowerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown) Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.skipShutdown- The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPowerOffAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginPowerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPowerOff
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPowerOff(String resourceGroupName, String vmScaleSetName, String instanceId) Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPowerOff
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPowerOff(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown, com.azure.core.util.Context context) Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.skipShutdown- The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
powerOffAsync
Mono<Void> powerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown) Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.skipShutdown- The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
powerOffAsync
Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
powerOff
Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
powerOff
void powerOff(String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown, com.azure.core.util.Context context) Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.skipShutdown- The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restartWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Restarts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestartAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRestartAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Restarts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String vmScaleSetName, String instanceId) Restarts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Restarts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restartAsync
Restarts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restart
Restarts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
restart
void restart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Restarts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
startWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Starts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginStartAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginStartAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Starts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String vmScaleSetName, String instanceId) Starts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Starts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
startAsync
Starts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
start
Starts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Starts a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeployWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeployAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeployAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeploy
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String vmScaleSetName, String instanceId) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeploy
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeployAsync
Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
void redeploy(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
retrieveBootDiagnosticsDataWithResponseAsync
Mono<com.azure.core.http.rest.Response<RetrieveBootDiagnosticsDataResultInner>> retrieveBootDiagnosticsDataWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, Integer sasUriExpirationTimeInMinutes) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.sasUriExpirationTimeInMinutes- Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.- Returns:
- the SAS URIs of the console screenshot and serial log blobs along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
retrieveBootDiagnosticsDataAsync
Mono<RetrieveBootDiagnosticsDataResultInner> retrieveBootDiagnosticsDataAsync(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the SAS URIs of the console screenshot and serial log blobs on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
retrieveBootDiagnosticsDataWithResponse
com.azure.core.http.rest.Response<RetrieveBootDiagnosticsDataResultInner> retrieveBootDiagnosticsDataWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, Integer sasUriExpirationTimeInMinutes, com.azure.core.util.Context context) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.sasUriExpirationTimeInMinutes- Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.context- The context to associate with this operation.- Returns:
- the SAS URIs of the console screenshot and serial log blobs along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
retrieveBootDiagnosticsData
RetrieveBootDiagnosticsDataResultInner retrieveBootDiagnosticsData(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the SAS URIs of the console screenshot and serial log blobs.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
performMaintenanceWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPerformMaintenanceAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginPerformMaintenanceAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPerformMaintenance
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPerformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPerformMaintenance
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPerformMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Performs maintenance on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
performMaintenanceAsync
Mono<Void> performMaintenanceAsync(String resourceGroupName, String vmScaleSetName, String instanceId) Performs maintenance on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
performMaintenance
Performs maintenance on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
performMaintenance
void performMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) Performs maintenance on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
simulateEvictionWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> simulateEvictionWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to simulate the eviction of spot virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
simulateEvictionAsync
Mono<Void> simulateEvictionAsync(String resourceGroupName, String vmScaleSetName, String instanceId) The operation to simulate the eviction of spot virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
simulateEvictionWithResponse
com.azure.core.http.rest.Response<Void> simulateEvictionWithResponse(String resourceGroupName, String vmScaleSetName, String instanceId, com.azure.core.util.Context context) The operation to simulate the eviction of spot virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
simulateEviction
The operation to simulate the eviction of spot virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
attachDetachDataDisksWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> attachDetachDataDisksWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.- Returns:
- specifies the storage settings for the virtual machine disks along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginAttachDetachDataDisksAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<StorageProfile>,StorageProfile> beginAttachDetachDataDisksAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.- Returns:
- the
PollerFluxfor polling of specifies the storage settings for the virtual machine disks. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginAttachDetachDataDisks
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>,StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.- Returns:
- the
SyncPollerfor polling of specifies the storage settings for the virtual machine disks. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginAttachDetachDataDisks
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageProfile>,StorageProfile> beginAttachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies the storage settings for the virtual machine disks. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
attachDetachDataDisksAsync
Mono<StorageProfile> attachDetachDataDisksAsync(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.- Returns:
- specifies the storage settings for the virtual machine disks on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
attachDetachDataDisks
StorageProfile attachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters) Attach and detach data disks to/from a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.- Returns:
- specifies the storage settings for the virtual machine disks.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
attachDetachDataDisks
StorageProfile attachDetachDataDisks(String resourceGroupName, String vmScaleSetName, String instanceId, AttachDetachDataDisksRequest parameters, com.azure.core.util.Context context) Attach and detach data disks to/from a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM.context- The context to associate with this operation.- Returns:
- specifies the storage settings for the virtual machine disks.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
runCommandWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> runCommandWithResponseAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Run command operation.- Returns:
- the response body along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRunCommandAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<RunCommandResultInner>,RunCommandResultInner> beginRunCommandAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Run command operation.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRunCommand
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RunCommandResultInner>,RunCommandResultInner> beginRunCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Run command operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginRunCommand
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RunCommandResultInner>,RunCommandResultInner> beginRunCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters, com.azure.core.util.Context context) Run command on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Run command operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
runCommandAsync
Mono<RunCommandResultInner> runCommandAsync(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Run command operation.- Returns:
- the response body on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
runCommand
RunCommandResultInner runCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters) Run command on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Run command operation.- Returns:
- the response.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
runCommand
RunCommandResultInner runCommand(String resourceGroupName, String vmScaleSetName, String instanceId, RunCommandInput parameters, com.azure.core.util.Context context) Run command on a virtual machine in a VM scale set.- Parameters:
resourceGroupName- The name of the resource group.vmScaleSetName- The name of the VM scale set.instanceId- The instance ID of the virtual machine.parameters- Parameters supplied to the Run command operation.context- The context to associate with this operation.- Returns:
- the response.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.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.
-