ArmComputeScheduleModelFactory.ComputeScheduleFlexProperties Method

Definition

The flex properties for flexible VM creation.

public static Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleFlexProperties ComputeScheduleFlexProperties(System.Collections.Generic.IEnumerable<Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleVmSizeProfile> vmSizeProfiles = default, Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleOSType osType = default, Azure.ResourceManager.ComputeSchedule.Models.ComputeSchedulePriorityProfile priorityProfile = default, Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleZoneAllocationPolicy zoneAllocationPolicy = default);
static member ComputeScheduleFlexProperties : seq<Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleVmSizeProfile> * Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleOSType * Azure.ResourceManager.ComputeSchedule.Models.ComputeSchedulePriorityProfile * Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleZoneAllocationPolicy -> Azure.ResourceManager.ComputeSchedule.Models.ComputeScheduleFlexProperties
Public Shared Function ComputeScheduleFlexProperties (Optional vmSizeProfiles As IEnumerable(Of ComputeScheduleVmSizeProfile) = Nothing, Optional osType As ComputeScheduleOSType = Nothing, Optional priorityProfile As ComputeSchedulePriorityProfile = Nothing, Optional zoneAllocationPolicy As ComputeScheduleZoneAllocationPolicy = Nothing) As ComputeScheduleFlexProperties

Parameters

vmSizeProfiles
IEnumerable<ComputeScheduleVmSizeProfile>

The list of VM size profiles to use for flex creation.

osType
ComputeScheduleOSType

The operating system type for the VMs.

priorityProfile
ComputeSchedulePriorityProfile

The priority profile for VM allocation.

zoneAllocationPolicy
ComputeScheduleZoneAllocationPolicy

The zone allocation policy for distributing VMs across availability zones.

Returns

A new ComputeScheduleFlexProperties instance for mocking.

Applies to