Interface VirtualMachineScaleSets
- All Superinterfaces:
HasInner<com.microsoft.azure.management.compute.implementation.VirtualMachineScaleSetsInner>
,HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>
,SupportsBatchCreation<VirtualMachineScaleSet>
,SupportsBatchDeletion
,SupportsCreating<VirtualMachineScaleSet.DefinitionStages.Blank>
,SupportsDeletingById
,SupportsDeletingByResourceGroup
,SupportsGettingById<VirtualMachineScaleSet>
,SupportsGettingByResourceGroup<VirtualMachineScaleSet>
,SupportsListing<VirtualMachineScaleSet>
,SupportsListingByResourceGroup<VirtualMachineScaleSet>
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>
Entry point to virtual machine scale set management API.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.com.microsoft.rest.ServiceFuture<Void>
deallocateAsync
(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.void
deleteById
(String id, boolean forceDeletion) Force delete a resource from Azure, identifying it by its resource ID.rx.Completable
deleteByIdAsync
(String id, boolean forceDeletion) Asynchronously force delete a resource from Azure, identifying it by its resource ID.com.microsoft.rest.ServiceFuture<Void>
deleteByIdAsync
(String id, boolean forceDeletion, com.microsoft.rest.ServiceCallback<Void> callback) Asynchronously force delete a resource from Azure, identifying it by its resource ID.void
deleteByResourceGroup
(String resourceGroupName, String name, boolean forceDeletion) Force delete a resource from Azure, identifying it by its name and its resource group.rx.Completable
deleteByResourceGroupAsync
(String resourceGroupName, String name, boolean forceDeletion) Asynchronously force delete a resource from Azure, identifying it by its name and its resource group.com.microsoft.rest.ServiceFuture<Void>
deleteByResourceGroupAsync
(String resourceGroupName, String name, boolean forceDeletion, com.microsoft.rest.ServiceCallback<Void> callback) Asynchronously force delete a resource from Azure, identifying it by its name and its resource group.void
deleteInstances
(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion) Delete virtual machine instances.rx.Completable
deleteInstancesAsync
(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion) Delete virtual machine instances.com.microsoft.rest.ServiceFuture<Void>
deleteInstancesAsync
(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion, com.microsoft.rest.ServiceCallback<Void> callback) Delete virtual machine instances.void
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.com.microsoft.rest.ServiceFuture<Void>
powerOffAsync
(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Powers off (stop) the virtual machines in the scale set asynchronously.void
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.com.microsoft.rest.ServiceFuture<Void>
reimageAsync
(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.void
Restarts the virtual machines in the scale set.rx.Completable
restartAsync
(String groupName, String name) Restarts the virtual machines in the scale set asynchronously.com.microsoft.rest.ServiceFuture<Void>
restartAsync
(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Restarts the virtual machines in the scale set asynchronously.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.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.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
Starts the virtual machines in the scale set.rx.Completable
startAsync
(String groupName, String name) Starts the virtual machines in the scale set asynchronously.com.microsoft.rest.ServiceFuture<Void>
startAsync
(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Starts the virtual machines in the scale set asynchronously.Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
manager
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsBatchCreation
create, create, createAsync, createAsync, createAsync, createAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating
define
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById
deleteById, deleteByIdAsync, deleteByIdAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup
deleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById
getById, getByIdAsync, getByIdAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup
getByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing
list, listAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup
listByResourceGroup, listByResourceGroupAsync
-
Method Details
-
deallocate
void deallocate(String groupName, String name) throws com.microsoft.azure.CloudException, IOException, InterruptedException Shuts down the virtual machines in the scale set and releases the compute resources.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Throws:
com.microsoft.azure.CloudException
- thrown for an invalid response from the service.IOException
- exception thrown from serialization/deserializationInterruptedException
- exception thrown when the operation is interrupted
-
deallocateAsync
Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Returns:
- a representation of the deferred computation of this call
-
deallocateAsync
com.microsoft.rest.ServiceFuture<Void> deallocateAsync(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.- Parameters:
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 failure- Returns:
- a handle to cancel the request
-
powerOff
void powerOff(String groupName, String name) throws com.microsoft.azure.CloudException, IOException, InterruptedException Powers off (stops) the virtual machines in the scale set.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Throws:
com.microsoft.azure.CloudException
- thrown for an invalid response from the service.IOException
- exception thrown from serialization/deserializationInterruptedException
- exception thrown when the operation is interrupted
-
powerOffAsync
Powers off (stops) the virtual machines in the scale set asynchronously.- Parameters:
groupName
- the name of the resource group the virtual machine in the scale set is inname
- the name of the virtual machine scale set- Returns:
- a representation of the deferred computation of this call
-
powerOffAsync
com.microsoft.rest.ServiceFuture<Void> powerOffAsync(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Powers off (stop) the virtual machines in the scale set asynchronously.- Parameters:
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 failure- Returns:
- a handle to cancel the request
-
restart
void restart(String groupName, String name) throws com.microsoft.azure.CloudException, IOException, InterruptedException Restarts the virtual machines in the scale set.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Throws:
com.microsoft.azure.CloudException
- thrown for an invalid response from the service.IOException
- exception thrown from serialization/deserializationInterruptedException
- exception thrown when the operation is interrupted
-
restartAsync
Restarts the virtual machines in the scale set asynchronously.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the virtual machine scale set name- Returns:
- a representation of the deferred computation of this call
-
restartAsync
com.microsoft.rest.ServiceFuture<Void> restartAsync(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Restarts the virtual machines in the scale set asynchronously.- Parameters:
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 failure- Returns:
- a handle to cancel the request
-
start
void start(String groupName, String name) throws com.microsoft.azure.CloudException, IOException, InterruptedException Starts the virtual machines in the scale set.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Throws:
com.microsoft.azure.CloudException
- thrown for an invalid response from the service.IOException
- exception thrown from serialization/deserializationInterruptedException
- exception thrown when the operation is interrupted
-
startAsync
Starts the virtual machines in the scale set asynchronously.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Returns:
- a representation of the deferred computation of this call
-
startAsync
com.microsoft.rest.ServiceFuture<Void> startAsync(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Starts the virtual machines in the scale set asynchronously.- Parameters:
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 failure- Returns:
- a handle to cancel the request
-
reimage
void reimage(String groupName, String name) throws com.microsoft.azure.CloudException, IOException, InterruptedException Re-images (updates the version of the installed operating system) the virtual machines in the scale set.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Throws:
com.microsoft.azure.CloudException
- thrown for an invalid response from the service.IOException
- exception thrown from serialization/deserializationInterruptedException
- exception thrown when the operation is interrupted
-
reimageAsync
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.- Parameters:
groupName
- the name of the resource group the virtual machine scale set is inname
- the name of the virtual machine scale set- Returns:
- a representation of the deferred computation of this call
-
reimageAsync
com.microsoft.rest.ServiceFuture<Void> reimageAsync(String groupName, String name, com.microsoft.rest.ServiceCallback<Void> callback) Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.- Parameters:
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 failure- Returns:
- a handle to cancel the request
-
runPowerShellScriptInVMInstance
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.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set namevmId
- the virtual machine instance idscriptLines
- PowerShell script linesscriptParameters
- script parameters- Returns:
- result of PowerShell script execution
-
runPowerShellScriptInVMInstanceAsync
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.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set namevmId
- the virtual machine instance idscriptLines
- PowerShell script linesscriptParameters
- script parameters- Returns:
- handle to the asynchronous execution
-
runShellScriptInVMInstance
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.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set namevmId
- the virtual machine instance idscriptLines
- shell script linesscriptParameters
- script parameters- Returns:
- result of shell script execution
-
runShellScriptInVMInstanceAsync
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.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set namevmId
- the virtual machine instance idscriptLines
- shell script linesscriptParameters
- script parameters- Returns:
- handle to the asynchronous execution
-
runCommandInVMInstance
RunCommandResult runCommandInVMInstance(String groupName, String scaleSetName, String vmId, RunCommandInput inputCommand) Run commands in a virtual machine instance in a scale set.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set namevmId
- the virtual machine instance idinputCommand
- command input- Returns:
- result of execution
-
runCommandVMInstanceAsync
rx.Observable<RunCommandResult> runCommandVMInstanceAsync(String groupName, String scaleSetName, String vmId, RunCommandInput inputCommand) Run commands in a virtual machine instance in a scale set asynchronously.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set namevmId
- the virtual machine instance idinputCommand
- command input- Returns:
- handle to the asynchronous execution
-
deleteInstances
void deleteInstances(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion) Delete virtual machine instances.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set nameinstanceIds
- instance IDsforceDeletion
- force delete without graceful shutdown
-
deleteInstancesAsync
rx.Completable deleteInstancesAsync(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion) Delete virtual machine instances.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set nameinstanceIds
- instance IDsforceDeletion
- force delete without graceful shutdown- Returns:
- a representation of the deferred computation of this call
-
deleteInstancesAsync
com.microsoft.rest.ServiceFuture<Void> deleteInstancesAsync(String groupName, String scaleSetName, Collection<String> instanceIds, boolean forceDeletion, com.microsoft.rest.ServiceCallback<Void> callback) Delete virtual machine instances.- Parameters:
groupName
- the resource group namescaleSetName
- the virtual machine scale set nameinstanceIds
- instance IDsforceDeletion
- force delete without graceful shutdowncallback
- the callback to call on success or failure- Returns:
- a handle to cancel the request
-
deleteById
Force delete a resource from Azure, identifying it by its resource ID.- Parameters:
id
- the resource ID of the resource to deleteforceDeletion
- force delete without graceful shutdown
-
deleteByIdAsync
com.microsoft.rest.ServiceFuture<Void> deleteByIdAsync(String id, boolean forceDeletion, com.microsoft.rest.ServiceCallback<Void> callback) Asynchronously force delete a resource from Azure, identifying it by its resource ID.- Parameters:
id
- the resource ID of the resource to deleteforceDeletion
- force delete without graceful shutdowncallback
- the callback on success or failure- Returns:
- a handle to cancel the request
-
deleteByIdAsync
Asynchronously force delete a resource from Azure, identifying it by its resource ID.- Parameters:
id
- the resource ID of the resource to deleteforceDeletion
- force delete without graceful shutdown- Returns:
- a representation of the deferred computation of this call
-
deleteByResourceGroup
Force delete a resource from Azure, identifying it by its name and its resource group.- Parameters:
resourceGroupName
- the resource group the resource is part ofname
- the name of the resourceforceDeletion
- force delete without graceful shutdown
-
deleteByResourceGroupAsync
com.microsoft.rest.ServiceFuture<Void> deleteByResourceGroupAsync(String resourceGroupName, String name, boolean forceDeletion, com.microsoft.rest.ServiceCallback<Void> callback) Asynchronously force delete a resource from Azure, identifying it by its name and its resource group.- Parameters:
resourceGroupName
- the resource group the resource is part ofname
- the name of the resourceforceDeletion
- force delete without graceful shutdowncallback
- the callback to call on success or failure- Returns:
- a handle to cancel the request
-
deleteByResourceGroupAsync
rx.Completable deleteByResourceGroupAsync(String resourceGroupName, String name, boolean forceDeletion) Asynchronously force delete a resource from Azure, identifying it by its name and its resource group.- Parameters:
resourceGroupName
- the resource group the resource is part ofname
- the name of the resourceforceDeletion
- force delete without graceful shutdown- Returns:
- a representation of the deferred computation of this call
-