ArmComputeScheduleModelFactory.ComputeScheduleZoneAllocationPolicy 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.
The zone allocation policy for distributing VMs across availability zones.
public static Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleZoneAllocationPolicy ComputeScheduleZoneAllocationPolicy(Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleDistributionStrategy distributionStrategy = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleZonePreference> zonePreferences = default);
static member ComputeScheduleZoneAllocationPolicy : Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleDistributionStrategy * seq<Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleZonePreference> -> Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleZoneAllocationPolicy
Public Shared Function ComputeScheduleZoneAllocationPolicy (Optional distributionStrategy As ComputeScheduleDistributionStrategy = Nothing, Optional zonePreferences As IEnumerable(Of ComputeScheduleZonePreference) = Nothing) As ComputeScheduleZoneAllocationPolicy
Parameters
- distributionStrategy
- ComputeScheduleDistributionStrategy
The distribution strategy for zone allocation.
- zonePreferences
- IEnumerable<ComputeScheduleZonePreference>
The zone preferences for allocation priority.
Returns
A new ComputeScheduleZoneAllocationPolicy instance for mocking.