VirtualMachineScaleSets Interface
Implements
public interface VirtualMachineScaleSets
extends SupportsListing<VirtualMachineScaleSet>, SupportsListingByResourceGroup<VirtualMachineScaleSet>, SupportsGettingByResourceGroup<VirtualMachineScaleSet>, SupportsGettingById<VirtualMachineScaleSet>, SupportsCreating<Blank>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<VirtualMachineScaleSet>, SupportsBatchDeletion, HasManager<ComputeManager>
Entry point to virtual machine scale set management API.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
deallocate(String groupName, String name)
Shuts down the virtual machines in the scale set and releases the compute resources. |
abstract Mono<Void> |
deallocateAsync(String groupName, String name)
Shuts down the virtual machines in the scale set and releases the compute resources asynchronously. |
abstract void |
deleteById(String id, boolean forceDeletion)
Force delete a resource from Azure, identifying it by its resource ID. |
abstract Mono<Void> |
deleteByIdAsync(String id, boolean forceDeletion)
Asynchronously force delete a resource from Azure, identifying it by its resource ID. |
abstract void |
deleteByResourceGroup(String resourceGroupName, String name, boolean forceDeletion)
Force delete a resource from Azure, identifying it by its name and its resource group. |
abstract Mono<Void> |
deleteByResourceGroupAsync(String resourceGroupName, String name, boolean forceDeletion)
Asynchronously force delete a resource from Azure, identifying it by its name and its resource group. |
abstract void |
deleteInstances(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion)
Delete virtual machine instances. |
abstract Mono<Void> |
deleteInstancesAsync(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion)
Delete virtual machine instances. |
abstract void |
powerOff(String groupName, String name)
Powers off (stops) the virtual machines in the scale set. |
abstract Mono<Void> |
powerOffAsync(String groupName, String name)
Powers off (stops) the virtual machines in the scale set asynchronously. |
abstract void |
reimage(String groupName, String name)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set. |
abstract 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. |
abstract void |
restart(String groupName, String name)
Restarts the virtual machines in the scale set. |
abstract Mono<Void> |
restartAsync(String groupName, String name)
Restarts the virtual machines in the scale set asynchronously. |
abstract
Run |
runCommandInVMInstance(String groupName, String scaleSetName, String vmId, RunCommandInput inputCommand)
Run commands in a virtual machine instance in a scale set. |
abstract
Mono<Run |
runCommandVMInstanceAsync(String groupName, String scaleSetName, String vmId, RunCommandInput inputCommand)
Run commands in a virtual machine instance in a scale set asynchronously. |
abstract
Run |
runPowerShellScriptInVMInstance(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
Run Power |
abstract
Mono<Run |
runPowerShellScriptInVMInstanceAsync(String groupName, String scaleSetName, String vmId, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
Run Power |
abstract
Run |
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. |
abstract
Mono<Run |
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. |
abstract void |
start(String groupName, String name)
Starts the virtual machines in the scale set. |
abstract Mono<Void> |
startAsync(String groupName, String name)
Starts the virtual machines in the scale set asynchronously. |
Method Details
deallocate
public abstract void deallocate(String groupName, String name)
Shuts down the virtual machines in the scale set and releases the compute resources.
Parameters:
Throws:
deallocateAsync
public abstract Mono
Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.
Parameters:
Returns:
deleteById
public abstract void deleteById(String id, boolean forceDeletion)
Force delete a resource from Azure, identifying it by its resource ID.
Parameters:
deleteByIdAsync
public abstract Mono
Asynchronously force delete a resource from Azure, identifying it by its resource ID.
Parameters:
Returns:
deleteByResourceGroup
public abstract void deleteByResourceGroup(String resourceGroupName, String name, boolean forceDeletion)
Force delete a resource from Azure, identifying it by its name and its resource group.
Parameters:
deleteByResourceGroupAsync
public abstract Mono
Asynchronously force delete a resource from Azure, identifying it by its name and its resource group.
Parameters:
Returns:
deleteInstances
public abstract void deleteInstances(String groupName, String scaleSetName, Collection
Delete virtual machine instances.
Parameters:
deleteInstancesAsync
public abstract Mono
Delete virtual machine instances.
Parameters:
Returns:
powerOff
public abstract void powerOff(String groupName, String name)
Powers off (stops) the virtual machines in the scale set.
Parameters:
Throws:
powerOffAsync
public abstract Mono
Powers off (stops) the virtual machines in the scale set asynchronously.
Parameters:
Returns:
reimage
public abstract void reimage(String groupName, String name)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set.
Parameters:
Throws:
reimageAsync
public abstract Mono
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
Parameters:
Returns:
restart
public abstract void restart(String groupName, String name)
Restarts the virtual machines in the scale set.
Parameters:
Throws:
restartAsync
public abstract Mono
Restarts the virtual machines in the scale set asynchronously.
Parameters:
Returns:
runCommandInVMInstance
public abstract RunCommandResult runCommandInVMInstance(String groupName, String scaleSetName, String vmId, RunCommandInput inputCommand)
Run commands in a virtual machine instance in a scale set.
Parameters:
Returns:
runCommandVMInstanceAsync
public abstract Mono
Run commands in a virtual machine instance in a scale set asynchronously.
Parameters:
Returns:
runPowerShellScriptInVMInstance
public abstract RunCommandResult runPowerShellScriptInVMInstance(String groupName, String scaleSetName, String vmId, List
Run PowerShell script in a virtual machine instance in a scale set.
Parameters:
Returns:
runPowerShellScriptInVMInstanceAsync
public abstract Mono
Run PowerShell in a virtual machine instance in a scale set asynchronously.
Parameters:
Returns:
runShellScriptInVMInstance
public abstract RunCommandResult runShellScriptInVMInstance(String groupName, String scaleSetName, String vmId, List
Run shell script in a virtual machine instance in a scale set.
Parameters:
Returns:
runShellScriptInVMInstanceAsync
public abstract Mono
Run shell script in a virtual machine instance in a scale set asynchronously.
Parameters:
Returns:
start
public abstract void start(String groupName, String name)
Starts the virtual machines in the scale set.
Parameters:
Throws:
startAsync
public abstract Mono
Starts the virtual machines in the scale set asynchronously.
Parameters:
Returns:
Applies to
Azure SDK for Java