ArmComputeModelFactory.ResiliencyPolicy 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.ResiliencyPolicy ResiliencyPolicy(bool? resilientVmCreationPolicyEnabled = default, bool? resilientVmDeletionPolicyEnabled = default, Azure.ResourceManager.Compute.Models.AutomaticZoneRebalancingPolicy automaticZoneRebalancingPolicy = default, Azure.ResourceManager.Compute.Models.ZoneAllocationPolicy zoneAllocationPolicy = default, Azure.ResourceManager.Compute.Models.OperationRecoverySettings operationRecoverySettings = default);
static member ResiliencyPolicy : Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Compute.Models.AutomaticZoneRebalancingPolicy * Azure.ResourceManager.Compute.Models.ZoneAllocationPolicy * Azure.ResourceManager.Compute.Models.OperationRecoverySettings -> Azure.ResourceManager.Compute.Models.ResiliencyPolicy
Public Shared Function ResiliencyPolicy (Optional resilientVmCreationPolicyEnabled As Nullable(Of Boolean) = Nothing, Optional resilientVmDeletionPolicyEnabled As Nullable(Of Boolean) = Nothing, Optional automaticZoneRebalancingPolicy As AutomaticZoneRebalancingPolicy = Nothing, Optional zoneAllocationPolicy As ZoneAllocationPolicy = Nothing, Optional operationRecoverySettings As OperationRecoverySettings = Nothing) As ResiliencyPolicy
Parameters
Specifies whether resilient VM creation should be enabled on the virtual machine scale set. The default value is false.
Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. The default value is false.
- automaticZoneRebalancingPolicy
- AutomaticZoneRebalancingPolicy
The configuration parameters used while performing automatic AZ balancing.
- zoneAllocationPolicy
- ZoneAllocationPolicy
The configuration parameters used while performing zone allocation.
- operationRecoverySettings
- OperationRecoverySettings
The configuration parameters used for operation recovery settings.
Returns
A new ResiliencyPolicy instance for mocking.