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>

Entry point to virtual machine scale set management API.
  • 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 in
      name - 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/deserialization
      InterruptedException - exception thrown when the operation is interrupted
    • deallocateAsync

      rx.Completable deallocateAsync(String groupName, String name)
      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 in
      name - 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 in
      name - the name of the virtual machine scale set
      callback - 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 in
      name - 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/deserialization
      InterruptedException - exception thrown when the operation is interrupted
    • powerOffAsync

      rx.Completable powerOffAsync(String groupName, String name)
      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 in
      name - 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 in
      name - the name of the virtual machine scale set
      callback - 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 in
      name - 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/deserialization
      InterruptedException - exception thrown when the operation is interrupted
    • restartAsync

      rx.Completable restartAsync(String groupName, String name)
      Restarts the virtual machines in the scale set asynchronously.
      Parameters:
      groupName - the name of the resource group the virtual machine scale set is in
      name - 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 in
      name - the virtual machine scale set name
      callback - 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 in
      name - 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/deserialization
      InterruptedException - exception thrown when the operation is interrupted
    • startAsync

      rx.Completable startAsync(String groupName, String name)
      Starts the virtual machines in the scale set asynchronously.
      Parameters:
      groupName - the name of the resource group the virtual machine scale set is in
      name - 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 in
      name - the name of the virtual machine scale set
      callback - 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 in
      name - 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/deserialization
      InterruptedException - exception thrown when the operation is interrupted
    • reimageAsync

      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.
      Parameters:
      groupName - the name of the resource group the virtual machine scale set is in
      name - 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 in
      name - the name of the virtual machine scale set
      callback - 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 name
      scaleSetName - the virtual machine scale set name
      vmId - the virtual machine instance id
      scriptLines - PowerShell script lines
      scriptParameters - 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 name
      scaleSetName - the virtual machine scale set name
      vmId - the virtual machine instance id
      scriptLines - PowerShell script lines
      scriptParameters - 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 name
      scaleSetName - the virtual machine scale set name
      vmId - the virtual machine instance id
      scriptLines - shell script lines
      scriptParameters - 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 name
      scaleSetName - the virtual machine scale set name
      vmId - the virtual machine instance id
      scriptLines - shell script lines
      scriptParameters - 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 name
      scaleSetName - the virtual machine scale set name
      vmId - the virtual machine instance id
      inputCommand - 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 name
      scaleSetName - the virtual machine scale set name
      vmId - the virtual machine instance id
      inputCommand - 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 name
      scaleSetName - the virtual machine scale set name
      instanceIds - instance IDs
      forceDeletion - 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 name
      scaleSetName - the virtual machine scale set name
      instanceIds - instance IDs
      forceDeletion - 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 name
      scaleSetName - the virtual machine scale set name
      instanceIds - instance IDs
      forceDeletion - force delete without graceful shutdown
      callback - the callback to call on success or failure
      Returns:
      a handle to cancel the request
    • deleteById

      void deleteById(String id, boolean forceDeletion)
      Force delete a resource from Azure, identifying it by its resource ID.
      Parameters:
      id - the resource ID of the resource to delete
      forceDeletion - 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 delete
      forceDeletion - force delete without graceful shutdown
      callback - the callback on success or failure
      Returns:
      a handle to cancel the request
    • deleteByIdAsync

      rx.Completable deleteByIdAsync(String id, boolean forceDeletion)
      Asynchronously force delete a resource from Azure, identifying it by its resource ID.
      Parameters:
      id - the resource ID of the resource to delete
      forceDeletion - force delete without graceful shutdown
      Returns:
      a representation of the deferred computation of this call
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String name, boolean forceDeletion)
      Force delete a resource from Azure, identifying it by its name and its resource group.
      Parameters:
      resourceGroupName - the resource group the resource is part of
      name - the name of the resource
      forceDeletion - 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 of
      name - the name of the resource
      forceDeletion - force delete without graceful shutdown
      callback - 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 of
      name - the name of the resource
      forceDeletion - force delete without graceful shutdown
      Returns:
      a representation of the deferred computation of this call