ArmComputeScheduleModelFactory.ComputeScheduleZoneAllocationPolicy Method

Definition

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.

Applies to