语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LifecycleHook Class

Definition

Describes a lifecycle hook.

public class LifecycleHook
type LifecycleHook = class
Public Class LifecycleHook
Inheritance
LifecycleHook

Constructors

Name Description
LifecycleHook()

Initializes a new instance of the LifecycleHook class.

LifecycleHook(String, Nullable<TimeSpan>, String)

Initializes a new instance of the LifecycleHook class.

Properties

Name Description
DefaultAction

Gets or sets specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil. Possible values include: 'Approve', 'Reject'

Type

Gets or sets specifies the type of the lifecycle hook. Possible values include: 'UpgradeAutoOSScheduling', 'UpgradeAutoOSRollingBatchStarting'

WaitDuration

Gets or sets specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format.

Applies to