Share via


AgentPoolUpgradeSettings Class

Definition

Settings for upgrading an agentpool

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.AgentPoolUpgradeSettingsTypeConverter))]
public class AgentPoolUpgradeSettings : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeSettings
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.AgentPoolUpgradeSettingsTypeConverter))>]
type AgentPoolUpgradeSettings = class
    interface IAgentPoolUpgradeSettings
    interface IJsonSerializable
Public Class AgentPoolUpgradeSettings
Implements IAgentPoolUpgradeSettings
Inheritance
AgentPoolUpgradeSettings
Attributes
Implements

Constructors

AgentPoolUpgradeSettings()

Creates an new AgentPoolUpgradeSettings instance.

Properties

MaxSurge

This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of AgentPoolUpgradeSettings.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of AgentPoolUpgradeSettings.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeSettings.

FromJsonString(String)

Creates a new instance of AgentPoolUpgradeSettings, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of AgentPoolUpgradeSettings into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to