ArmComputeModelFactory.AutomaticZoneRebalancingPolicy Method

Definition

public static Azure.ResourceManager.Compute.Models.AutomaticZoneRebalancingPolicy AutomaticZoneRebalancingPolicy(bool? enabled = default, Azure.ResourceManager.Compute.Models.VmssRebalanceStrategy? rebalanceStrategy = default, Azure.ResourceManager.Compute.Models.VmssRebalanceBehavior? rebalanceBehavior = default);
static member AutomaticZoneRebalancingPolicy : Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.VmssRebalanceStrategy> * Nullable<Azure.ResourceManager.Compute.Models.VmssRebalanceBehavior> -> Azure.ResourceManager.Compute.Models.AutomaticZoneRebalancingPolicy
Public Shared Function AutomaticZoneRebalancingPolicy (Optional enabled As Nullable(Of Boolean) = Nothing, Optional rebalanceStrategy As Nullable(Of VmssRebalanceStrategy) = Nothing, Optional rebalanceBehavior As Nullable(Of VmssRebalanceBehavior) = Nothing) As AutomaticZoneRebalancingPolicy

Parameters

enabled
Nullable<Boolean>

Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. The default value is false.

rebalanceStrategy
Nullable<VmssRebalanceStrategy>

Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set across availability zones. Default and only supported value for now is Recreate.

rebalanceBehavior
Nullable<VmssRebalanceBehavior>

Type of rebalance behavior that will be used for recreating virtual machines in the scale set across availability zones. Default and only supported value for now is CreateBeforeDelete.

Returns

A new AutomaticZoneRebalancingPolicy instance for mocking.

Applies to