ArmComputeModelFactory.VirtualMachinePlacement Method

Definition

public static Azure.ResourceManager.Compute.Models.VirtualMachinePlacement VirtualMachinePlacement(Azure.ResourceManager.Compute.Models.ZonePlacementPolicyType? zonePlacementPolicyType = default, System.Collections.Generic.IEnumerable<string> includeZones = default, System.Collections.Generic.IEnumerable<string> excludeZones = default);
static member VirtualMachinePlacement : Nullable<Azure.ResourceManager.Compute.Models.ZonePlacementPolicyType> * seq<string> * seq<string> -> Azure.ResourceManager.Compute.Models.VirtualMachinePlacement
Public Shared Function VirtualMachinePlacement (Optional zonePlacementPolicyType As Nullable(Of ZonePlacementPolicyType) = Nothing, Optional includeZones As IEnumerable(Of String) = Nothing, Optional excludeZones As IEnumerable(Of String) = Nothing) As VirtualMachinePlacement

Parameters

zonePlacementPolicyType
Nullable<ZonePlacementPolicyType>

Specifies the policy for resource's placement in availability zone. Possible values are: Any (used for Virtual Machines), Auto (used for Virtual Machine Scale Sets) - An availability zone will be automatically picked by system as part of resource creation.

includeZones
IEnumerable<String>

This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection.

excludeZones
IEnumerable<String>

This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection.

Returns

A new VirtualMachinePlacement instance for mocking.

Applies to