ArmComputeFleetModelFactory.SpotPriorityProfile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile SpotPriorityProfile(int? capacity = default, int? minCapacity = default, float? maxPricePerVm = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetEvictionPolicy? evictionPolicy = default, Azure.ResourceManager.ComputeFleet.Models.SpotAllocationStrategy? allocationStrategy = default, bool? isMaintainEnabled = default);
static member SpotPriorityProfile : Nullable<int> * Nullable<int> * Nullable<single> * Nullable<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetEvictionPolicy> * Nullable<Azure.ResourceManager.ComputeFleet.Models.SpotAllocationStrategy> * Nullable<bool> -> Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile
Public Shared Function SpotPriorityProfile (Optional capacity As Nullable(Of Integer) = Nothing, Optional minCapacity As Nullable(Of Integer) = Nothing, Optional maxPricePerVm As Nullable(Of Single) = Nothing, Optional evictionPolicy As Nullable(Of ComputeFleetEvictionPolicy) = Nothing, Optional allocationStrategy As Nullable(Of SpotAllocationStrategy) = Nothing, Optional isMaintainEnabled As Nullable(Of Boolean) = Nothing) As SpotPriorityProfile
Parameters
Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.
- evictionPolicy
- Nullable<ComputeFleetEvictionPolicy>
Eviction Policy to follow when evicting Spot VMs.
- allocationStrategy
- Nullable<SpotAllocationStrategy>
Allocation strategy to follow when determining the VM sizes distribution for Spot VMs.
Flag to enable/disable continuous goal seeking for the desired capacity and restoration of evicted Spot VMs. If maintain is enabled, AzureFleetRP will use all VM sizes in vmSizesProfile to create new VMs (if VMs are evicted deleted) or update existing VMs with new VM sizes (if VMs are evicted deallocated or failed to allocate due to capacity constraint) in order to achieve the desired capacity. Maintain is enabled by default.
Returns
A new SpotPriorityProfile instance for mocking.