ArmComputeModelFactory.AutomaticZoneRebalancingPolicy 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.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
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.