AutomaticOSUpgradePolicy Class
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.
The configuration parameters used for performing automatic OS upgrade.
public class AutomaticOSUpgradePolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.AutomaticOSUpgradePolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.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. Default value is false. |
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. Default value is false. If this is set to true for Windows based scale sets, enableAutomaticUpdates is automatically set to false and cannot be set to true. |
OSRollingUpgradeDeferral |
Indicates whether Auto OS Upgrade should undergo deferral. Deferred OS upgrades will send advanced notifications on a per-VM basis that an OS upgrade from rolling upgrades is incoming, via the IMDS tag 'Platform.PendingOSUpgrade'. The upgrade then defers until the upgrade is approved via an ApproveRollingUpgrade call. |
UseRollingUpgradePolicy |
Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value is false. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
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. |