ArmComputeModelFactory.ZoneAllocationPolicy 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.Compute.Models.ZoneAllocationPolicy ZoneAllocationPolicy(int? maxZoneCount = default, Azure.ResourceManager.Compute.Models.MaxInstancePercentPerZonePolicy maxInstancePercentPerZonePolicy = default);
static member ZoneAllocationPolicy : Nullable<int> * Azure.ResourceManager.Compute.Models.MaxInstancePercentPerZonePolicy -> Azure.ResourceManager.Compute.Models.ZoneAllocationPolicy
Public Shared Function ZoneAllocationPolicy (Optional maxZoneCount As Nullable(Of Integer) = Nothing, Optional maxInstancePercentPerZonePolicy As MaxInstancePercentPerZonePolicy = Nothing) As ZoneAllocationPolicy
Parameters
The maximum number of availability zones to use if the ZonePlacementPolicy is 'Auto'. If not specified, all availability zones will be used.
- maxInstancePercentPerZonePolicy
- MaxInstancePercentPerZonePolicy
The configuration parameters used to limit the number of virtual machines per availability zone in the virtual machine scale set.
Returns
A new ZoneAllocationPolicy instance for mocking.