public interface VirtualMachineScaleSets extends SupportsListing<VirtualMachineScaleSet>, SupportsListingByResourceGroup<VirtualMachineScaleSet>, SupportsGettingByResourceGroup<VirtualMachineScaleSet>, SupportsGettingById<VirtualMachineScaleSet>, SupportsCreating<VirtualMachineScaleSet.DefinitionStages.Blank>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<VirtualMachineScaleSet>, SupportsBatchDeletion, HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, HasInner<com.microsoft.azure.management.compute.implementation.VirtualMachineScaleSetsInner>
| Modifier and Type | Method and Description |
|---|---|
void |
deallocate(String groupName,
String name)
Shuts down the virtual machines in the scale set and releases the compute resources.
|
rx.Completable |
deallocateAsync(String groupName,
String name)
Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.
|
ServiceFuture<Void> |
deallocateAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.
|
void |
powerOff(String groupName,
String name)
Powers off (stops) the virtual machines in the scale set.
|
rx.Completable |
powerOffAsync(String groupName,
String name)
Powers off (stops) the virtual machines in the scale set asynchronously.
|
ServiceFuture<Void> |
powerOffAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Powers off (stop) the virtual machines in the scale set asynchronously.
|
void |
reimage(String groupName,
String name)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set.
|
rx.Completable |
reimageAsync(String groupName,
String name)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
|
ServiceFuture<Void> |
reimageAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
|
void |
restart(String groupName,
String name)
Restarts the virtual machines in the scale set.
|
rx.Completable |
restartAsync(String groupName,
String name)
Restarts the virtual machines in the scale set asynchronously.
|
ServiceFuture<Void> |
restartAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Restarts the virtual machines in the scale set asynchronously.
|
RunCommandResult |
runCommandInVMInstance(String groupName,
String scaleSetName,
String vmId,
RunCommandInput inputCommand)
Run commands in a virtual machine instance in a scale set.
|
rx.Observable<RunCommandResult> |
runCommandVMInstanceAsync(String groupName,
String scaleSetName,
String vmId,
RunCommandInput inputCommand)
Run commands in a virtual machine instance in a scale set asynchronously.
|
RunCommandResult |
runPowerShellScriptInVMInstance(String groupName,
String scaleSetName,
String vmId,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run PowerShell script in a virtual machine instance in a scale set.
|
rx.Observable<RunCommandResult> |
runPowerShellScriptInVMInstanceAsync(String groupName,
String scaleSetName,
String vmId,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run PowerShell in a virtual machine instance in a scale set asynchronously.
|
RunCommandResult |
runShellScriptInVMInstance(String groupName,
String scaleSetName,
String vmId,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run shell script in a virtual machine instance in a scale set.
|
rx.Observable<RunCommandResult> |
runShellScriptInVMInstanceAsync(String groupName,
String scaleSetName,
String vmId,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run shell script in a virtual machine instance in a scale set asynchronously.
|
void |
start(String groupName,
String name)
Starts the virtual machines in the scale set.
|
rx.Completable |
startAsync(String groupName,
String name)
Starts the virtual machines in the scale set asynchronously.
|
ServiceFuture<Void> |
startAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Starts the virtual machines in the scale set asynchronously.
|
list, listAsynclistByResourceGroup, listByResourceGroupAsyncgetByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsyncgetById, getByIdAsync, getByIdAsyncdefinedeleteById, deleteByIdAsync, deleteByIdAsyncdeleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsynccreate, create, createAsync, createAsync, createAsync, createAsyncdeleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsyncmanagervoid deallocate(String groupName, String name) throws CloudException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setCloudException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedrx.Completable deallocateAsync(String groupName, String name)
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setServiceFuture<Void> deallocateAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcallback - the callback to call on success or failurevoid powerOff(String groupName, String name) throws CloudException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setCloudException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedrx.Completable powerOffAsync(String groupName, String name)
groupName - the name of the resource group the virtual machine in the scale set is inname - the name of the virtual machine scale setServiceFuture<Void> powerOffAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName - the name of the resource group the virtual machine in the scale set is inname - the name of the virtual machine scale setcallback - the callback to call on success or failurevoid restart(String groupName, String name) throws CloudException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setCloudException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedrx.Completable restartAsync(String groupName, String name)
groupName - the name of the resource group the virtual machine scale set is inname - the virtual machine scale set nameServiceFuture<Void> restartAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName - the name of the resource group the virtual machine scale set is inname - the virtual machine scale set namecallback - the callback to call on success or failurevoid start(String groupName, String name) throws CloudException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setCloudException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedrx.Completable startAsync(String groupName, String name)
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setServiceFuture<Void> startAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcallback - the callback to call on success or failurevoid reimage(String groupName, String name) throws CloudException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setCloudException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedrx.Completable reimageAsync(String groupName, String name)
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setServiceFuture<Void> reimageAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcallback - the callback to call on success or failureRunCommandResult runPowerShellScriptInVMInstance(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName - the resource group namescaleSetName - the virtual machine scale set namevmId - the virtual machine instance idscriptLines - PowerShell script linesscriptParameters - script parametersrx.Observable<RunCommandResult> runPowerShellScriptInVMInstanceAsync(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName - the resource group namescaleSetName - the virtual machine scale set namevmId - the virtual machine instance idscriptLines - PowerShell script linesscriptParameters - script parametersRunCommandResult runShellScriptInVMInstance(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName - the resource group namescaleSetName - the virtual machine scale set namevmId - the virtual machine instance idscriptLines - shell script linesscriptParameters - script parametersrx.Observable<RunCommandResult> runShellScriptInVMInstanceAsync(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName - the resource group namescaleSetName - the virtual machine scale set namevmId - the virtual machine instance idscriptLines - shell script linesscriptParameters - script parametersRunCommandResult runCommandInVMInstance(String groupName, String scaleSetName, String vmId, RunCommandInput inputCommand)
groupName - the resource group namescaleSetName - the virtual machine scale set namevmId - the virtual machine instance idinputCommand - command inputrx.Observable<RunCommandResult> runCommandVMInstanceAsync(String groupName, String scaleSetName, String vmId, RunCommandInput inputCommand)
groupName - the resource group namescaleSetName - the virtual machine scale set namevmId - the virtual machine instance idinputCommand - command inputCopyright © 2019. All rights reserved.