Condividi tramite


AutomaticOSUpgradePolicy Class

Definition

The configuration parameters used for performing automatic OS upgrade.

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

Constructors

AutomaticOSUpgradePolicy()

Initializes a new instance of AutomaticOSUpgradePolicy.

Properties

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.

Explicit Interface Implementations

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