public interface VirtualMachineScaleSets extends SupportsListing<VirtualMachineScaleSet>, SupportsListingByResourceGroup<VirtualMachineScaleSet>, SupportsGettingByResourceGroup<VirtualMachineScaleSet>, SupportsGettingById<VirtualMachineScaleSet>, SupportsCreating<VirtualMachineScaleSet.DefinitionStages.Blank>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<VirtualMachineScaleSet>, SupportsBatchDeletion, HasManager<ComputeManager>
| 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.
|
Mono<Void> |
deallocateAsync(String groupName,
String name)
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.
|
Mono<Void> |
powerOffAsync(String groupName,
String name)
Powers off (stops) 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.
|
Mono<Void> |
reimageAsync(String groupName,
String name)
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.
|
Mono<Void> |
restartAsync(String groupName,
String name)
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.
|
Mono<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.
|
Mono<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.
|
Mono<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.
|
Mono<Void> |
startAsync(String groupName,
String name)
Starts the virtual machines in the scale set asynchronously.
|
list, listAsynclistByResourceGroup, listByResourceGroupAsyncgetByResourceGroup, getByResourceGroupAsyncgetById, getByIdAsyncdefinedeleteById, deleteByIdAsyncdeleteByResourceGroup, deleteByResourceGroupAsynccreate, create, createAsync, createAsyncdeleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsyncmanagervoid deallocate(String groupName, String name) throws com.azure.core.management.exception.ManagementException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcom.azure.core.management.exception.ManagementException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedMono<Void> 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 setvoid powerOff(String groupName, String name) throws com.azure.core.management.exception.ManagementException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcom.azure.core.management.exception.ManagementException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedMono<Void> 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 setvoid restart(String groupName, String name) throws com.azure.core.management.exception.ManagementException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcom.azure.core.management.exception.ManagementException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedMono<Void> restartAsync(String groupName, String name)
groupName - the name of the resource group the virtual machine scale set is inname - the virtual machine scale set namevoid start(String groupName, String name) throws com.azure.core.management.exception.ManagementException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcom.azure.core.management.exception.ManagementException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedMono<Void> 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 setvoid reimage(String groupName, String name) throws com.azure.core.management.exception.ManagementException, IOException, InterruptedException
groupName - the name of the resource group the virtual machine scale set is inname - the name of the virtual machine scale setcom.azure.core.management.exception.ManagementException - thrown for an invalid response from the service.IOException - exception thrown from serialization/deserializationInterruptedException - exception thrown when the operation is interruptedMono<Void> 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 setRunCommandResult 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 parametersMono<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 parametersMono<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 inputMono<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 © 2020 Microsoft Corporation. All rights reserved.