ArmComputeModelFactory.ComputeExternalHealthPolicy Method

Definition

public static Azure.ResourceManager.Compute.Models.ComputeExternalHealthPolicy ComputeExternalHealthPolicy(bool? enabled = default, TimeSpan? expiryDuration = default, TimeSpan? gracePeriod = default);
static member ComputeExternalHealthPolicy : Nullable<bool> * Nullable<TimeSpan> * Nullable<TimeSpan> -> Azure.ResourceManager.Compute.Models.ComputeExternalHealthPolicy
Public Shared Function ComputeExternalHealthPolicy (Optional enabled As Nullable(Of Boolean) = Nothing, Optional expiryDuration As Nullable(Of TimeSpan) = Nothing, Optional gracePeriod As Nullable(Of TimeSpan) = Nothing) As ComputeExternalHealthPolicy

Parameters

enabled
Nullable<Boolean>

If true, external health is enabled for this scale set. Cannot be set to true on instances where another health monitoring source is active (ApplicationHealth extension or SLB). Defaults to false.

expiryDuration
Nullable<TimeSpan>

Defines how long the health status set by External Health API will last on the VM. If a signal is not received/updated within this time, the VM Health will be marked as "unknown". Uses the ISO 8601 format. Minimum: 5 minutes (PT5M), Maximum: 3 hours (PT3H).

gracePeriod
Nullable<TimeSpan>

Grace period for newly created VMs or when the External Health policy is first applied on VMSS. Uses the ISO 8601 format. Minimum: 5 minutes (PT5M), Maximum: 4 hours (PT4H).

Returns

A new ComputeExternalHealthPolicy instance for mocking.

Applies to