ArmComputeModelFactory.ComputeExternalHealthPolicy 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.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
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.
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).
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.