ComputeExternalHealthPolicy Class

Definition

Specifies the external health policy for the virtual machine scale set.

public class ComputeExternalHealthPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.ComputeExternalHealthPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.ComputeExternalHealthPolicy>
type ComputeExternalHealthPolicy = class
    interface IJsonModel<ComputeExternalHealthPolicy>
    interface IPersistableModel<ComputeExternalHealthPolicy>
Public Class ComputeExternalHealthPolicy
Implements IJsonModel(Of ComputeExternalHealthPolicy), IPersistableModel(Of ComputeExternalHealthPolicy)
Inheritance
ComputeExternalHealthPolicy
Implements

Constructors

Name Description
ComputeExternalHealthPolicy()

Initializes a new instance of ComputeExternalHealthPolicy.

Properties

Name Description
Enabled

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

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

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

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ComputeExternalHealthPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ComputeExternalHealthPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ComputeExternalHealthPolicy>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ComputeExternalHealthPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ComputeExternalHealthPolicy>.Write(ModelReaderWriterOptions)

Applies to