Share via


AutomaticOsUpgradePolicy Class

Definition

The configuration parameters used for performing automatic OS upgrade.

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

Constructors

Name Description
AutomaticOsUpgradePolicy()

Initializes a new instance of AutomaticOsUpgradePolicy.

Properties

Name Description
DisableAutomaticRollback

Whether OS image rollback feature should be disabled.

EnableAutomaticOsUpgrade

Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. <br /><br /> If this is set to true for Windows based pools, WindowsConfiguration.enableAutomaticUpdates cannot be set to true.

OsRollingUpgradeDeferral

Defer OS upgrades on the TVMs if they are running tasks.

UseRollingUpgradePolicy

Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<AutomaticOsUpgradePolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AutomaticOsUpgradePolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AutomaticOsUpgradePolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AutomaticOsUpgradePolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AutomaticOsUpgradePolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to