Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure Compute Fleet supports two modes that determine how the fleet manages the virtual machines (VMs) it provisions:
- Managed mode (
mode: Managed, the default) keeps the fleet in place to manage VM capacity over time. When you configure the fleet to maintain Spot capacity, the fleet replaces evicted Spot VMs to keep your target capacity. You can also modify a running fleet's target capacity and VM sizes. - Launch mode (
mode: Launch) provisions VMs in a single request and then hands off control. For more information, see What is Launch mode for Azure Compute Fleet? (Preview).
If you don't specify a mode, the fleet uses Managed mode.
Maintain capacity preference
In Managed mode, you can configure a capacity preference of Maintain capacity for your Spot VMs (spotPriorityProfile.maintain: true). With this preference, Compute Fleet attempts to maintain your Spot target capacity by deploying replacement Spot VMs from your specified VM sizes when Spot VMs are evicted for price or capacity reasons.
Note
Maintain capacity is a Spot capacity preference within Managed mode. It is distinct from the fleet mode. The Maintain capacity preference isn't available in Launch mode.
For more information about configuring Spot VMs, see Spot VM configuration.
Modify a running fleet
While your Compute Fleet is in a running state, Managed mode allows you to modify the target capacity and VM size selection based on how you configured your fleet.
Modify target capacity
You can update your Spot VM target capacity while the fleet is running if you set the capacity preference to Maintain capacity.
Compute Fleet automatically deploys new Spot VMs from the list of specified SKUs to scale up and reach the new target capacity.
When you reduce target capacity, Compute Fleet doesn't replace evicted Spot VMs until the fleet reaches the new target. The time required depends on the eviction rate. To scale down faster, delete running Spot VMs.
Azure portal
The following steps show how to modify an existing Compute Fleet. To learn how to launch a new fleet, see Create an Azure Compute Fleet using Azure portal. During the creation process, set the Capacity preference to Maintain capacity in the Basics tab to allow for updates after creation.
- Sign in to the Azure portal.
- Go to the Overview page of your Compute Fleet.
- Under the resource visualizer, select Capacity to modify the target capacity for Azure Spot VMs, VM capacity, or both.
- Select Apply to confirm.
- Your Compute Fleet is now updated with a new target capacity.
Modify VM size selection
You can add or delete VM sizes or SKUs in your Compute Fleet while it's running. For Spot VMs, you can delete or replace existing VM sizes in your Compute Fleet configuration if you set the capacity preference to Maintain capacity.
For other changes to a running Compute Fleet, you might need to delete the existing fleet and create a new one.
Azure portal
The following steps show how to modify an existing Compute Fleet. To learn how to launch a new fleet, see Create an Azure Compute Fleet using Azure portal. During the creation process, set the Capacity preference to Maintain capacity in the Basics tab to allow for updates after creation.
- Sign in to the Azure portal.
- Go to the Overview page of your Compute Fleet.
- Select Sizes under the resource visualizer to add more VM sizes to your running Compute Fleet.
- Select Resize to confirm.
- Your Compute Fleet is now updated with the new VM sizes.