Share via


ApplicationUpgradePolicy Constructors

Definition

Overloads

ApplicationUpgradePolicy()

Initializes a new instance of the ApplicationUpgradePolicy class.

ApplicationUpgradePolicy(ApplicationHealthPolicy, Nullable<Boolean>, RollingUpgradeMonitoringPolicy, Nullable<Int64>, String, Nullable<Int64>, Nullable<Boolean>)

Initializes a new instance of the ApplicationUpgradePolicy class.

ApplicationUpgradePolicy()

Initializes a new instance of the ApplicationUpgradePolicy class.

public ApplicationUpgradePolicy ();
Public Sub New ()

Applies to

ApplicationUpgradePolicy(ApplicationHealthPolicy, Nullable<Boolean>, RollingUpgradeMonitoringPolicy, Nullable<Int64>, String, Nullable<Int64>, Nullable<Boolean>)

Initializes a new instance of the ApplicationUpgradePolicy class.

public ApplicationUpgradePolicy (Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ApplicationHealthPolicy applicationHealthPolicy = default, bool? forceRestart = default, Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.RollingUpgradeMonitoringPolicy rollingUpgradeMonitoringPolicy = default, long? instanceCloseDelayDuration = default, string upgradeMode = default, long? upgradeReplicaSetCheckTimeout = default, bool? recreateApplication = default);
new Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ApplicationUpgradePolicy : Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ApplicationHealthPolicy * Nullable<bool> * Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.RollingUpgradeMonitoringPolicy * Nullable<int64> * string * Nullable<int64> * Nullable<bool> -> Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ApplicationUpgradePolicy
Public Sub New (Optional applicationHealthPolicy As ApplicationHealthPolicy = Nothing, Optional forceRestart As Nullable(Of Boolean) = Nothing, Optional rollingUpgradeMonitoringPolicy As RollingUpgradeMonitoringPolicy = Nothing, Optional instanceCloseDelayDuration As Nullable(Of Long) = Nothing, Optional upgradeMode As String = Nothing, Optional upgradeReplicaSetCheckTimeout As Nullable(Of Long) = Nothing, Optional recreateApplication As Nullable(Of Boolean) = Nothing)

Parameters

applicationHealthPolicy
ApplicationHealthPolicy
forceRestart
Nullable<Boolean>
rollingUpgradeMonitoringPolicy
RollingUpgradeMonitoringPolicy
instanceCloseDelayDuration
Nullable<Int64>

Duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured in the service description.

upgradeMode
String

Possible values include: 'Monitored', 'UnmonitoredAuto'

upgradeReplicaSetCheckTimeout
Nullable<Int64>

The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer).

recreateApplication
Nullable<Boolean>

Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed.

Applies to