Interface VirtualMachineScaleSetVMs

    • Method Detail

      • deleteInstancesAsync

        Mono<Void> deleteInstancesAsync​(Collection<String> instanceIds)
        Deletes the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be deleted
        Returns:
        a representation of the deferred computation of this call.
      • deleteInstancesAsync

        Mono<Void> deleteInstancesAsync​(String... instanceIds)
        Deletes the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be deleted
        Returns:
        a representation of the deferred computation of this call.
      • deleteInstances

        void deleteInstances​(String... instanceIds)
        Deletes the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be deleted
      • deleteInstancesAsync

        Mono<Void> deleteInstancesAsync​(Collection<String> instanceIds,
                                        boolean forceDeletion)
        Deletes the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be deleted
        forceDeletion - force delete without graceful shutdown
        Returns:
        a representation of the deferred computation of this call.
      • deleteInstances

        void deleteInstances​(Collection<String> instanceIds,
                             boolean forceDeletion)
        Deletes the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be deleted
        forceDeletion - force delete without graceful shutdown
      • getInstance

        VirtualMachineScaleSetVM getInstance​(String instanceId)
        Get the specified virtual machine instance from the scale set.
        Parameters:
        instanceId - instance ID of the virtual machine scale set instance to be fetched.
        Returns:
        the virtual machine scale set instance.
      • getInstanceAsync

        Mono<VirtualMachineScaleSetVM> getInstanceAsync​(String instanceId)
        Get the specified virtual machine instance from the scale set.
        Parameters:
        instanceId - instance ID of the virtual machine scale set instance to be fetched.
        Returns:
        the virtual machine scale set instance.
      • updateInstancesAsync

        Mono<Void> updateInstancesAsync​(Collection<String> instanceIds)
        Updates the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be updated
        Returns:
        a representation of the deferred computation of this call.
      • updateInstancesAsync

        Mono<Void> updateInstancesAsync​(String... instanceIds)
        Updates the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be updated
        Returns:
        a representation of the deferred computation of this call.
      • updateInstances

        void updateInstances​(String... instanceIds)
        Updates the specified virtual machine instances from the scale set.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances to be updated
      • deallocateInstances

        void deallocateInstances​(Collection<String> instanceIds)
        Shuts down the virtual machine instances and releases the associated compute resources.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
      • deallocateInstancesAsync

        Mono<Void> deallocateInstancesAsync​(Collection<String> instanceIds)
        Shuts down the virtual machine instances and releases the associated compute resources.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
        Returns:
        a representation of the deferred computation of this call.
      • powerOffInstances

        void powerOffInstances​(Collection<String> instanceIds,
                               boolean skipShutdown)
        Stops the virtual machine instances.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
        skipShutdown - power off without graceful shutdown
      • powerOffInstancesAsync

        Mono<Void> powerOffInstancesAsync​(Collection<String> instanceIds,
                                          boolean skipShutdown)
        Stops the virtual machine instances.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
        skipShutdown - power off without graceful shutdown
        Returns:
        a representation of the deferred computation of this call.
      • startInstances

        void startInstances​(Collection<String> instanceIds)
        Starts the virtual machine instances.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
      • startInstancesAsync

        Mono<Void> startInstancesAsync​(Collection<String> instanceIds)
        Starts the virtual machine instances.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
        Returns:
        a representation of the deferred computation of this call.
      • restartInstances

        void restartInstances​(Collection<String> instanceIds)
        Restarts the virtual machine instances.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
      • restartInstancesAsync

        Mono<Void> restartInstancesAsync​(Collection<String> instanceIds)
        Restarts the virtual machine instances.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
        Returns:
        a representation of the deferred computation of this call.
      • redeployInstances

        void redeployInstances​(Collection<String> instanceIds)
        Shuts down the virtual machine instances, move them to new node, and powers them back on.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
      • redeployInstancesAsync

        Mono<Void> redeployInstancesAsync​(Collection<String> instanceIds)
        Shuts down the virtual machine instances, move them to new node, and powers them back on.
        Parameters:
        instanceIds - instance IDs of the virtual machine scale set instances
        Returns:
        a representation of the deferred computation of this call.
      • simulateEvictionAsync

        Mono<Void> simulateEvictionAsync​(String instanceId)
        Simulates the eviction of the specified spot virtual machine in the scale set asynchronously. The eviction will occur with 30 minutes after calling this API.
        Parameters:
        instanceId - The instance ID of the virtual machine.
        Returns:
        a representation of the deferred computation of this call
      • simulateEviction

        void simulateEviction​(String instanceId)
        Simulates the eviction of the specified spot virtual machine in the scale set. The eviction will occur with 30 minutes after calling this API.
        Parameters:
        instanceId - The instance ID of the virtual machine.
      • list

        com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVM> list​(String filter,
                                                                              VirtualMachineScaleSetVMExpandType expand)
        Lists all the resources of the specified type in the currently selected subscription.
        Parameters:
        filter - The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.
        expand - The expand expression to apply to the operation. Allowed values are 'instanceView'.
        Returns:
        A PagedIterable of resources
      • listAsync

        com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVM> listAsync​(String filter,
                                                                               VirtualMachineScaleSetVMExpandType expand)
        Lists all the resources of the specified type in the currently selected subscription.
        Parameters:
        filter - The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.
        expand - The expand expression to apply to the operation. Allowed values are 'instanceView'.
        Returns:
        A PagedFlux of resources