共用方式為


UpgradePolicy Class

Definition

Describes an upgrade policy - automatic, manual, or rolling.

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

Constructors

UpgradePolicy(UpgradeMode)

Initializes a new instance of UpgradePolicy.

Properties

AutomaticOsUpgradePolicy

Configuration parameters used for performing automatic OS Upgrade. The configuration parameters used for performing automatic OS upgrade.

Mode

Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> Automatic - All virtual machines in the scale set are automatically updated at the same time.<br /><br /> Rolling - Scale set performs updates in batches with an optional pause time in between.

RollingUpgradePolicy

The configuration parameters used while performing a rolling upgrade. This property is only supported on Pools with the virtualMachineConfiguration property.

Explicit Interface Implementations

IJsonModel<UpgradePolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<UpgradePolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<UpgradePolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UpgradePolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<UpgradePolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to