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

LifecycleHook Class

Describes a lifecycle hook.

Constructor

LifecycleHook(*args: Any, **kwargs: Any)

Variables

Name Description
type

Specifies the type of the lifecycle hook. Known values are: "UpgradeAutoOSScheduling" and "UpgradeAutoOSRollingBatchStarting".

wait_duration

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.

default_action

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. Known values are: "Approve" and "Reject".

Attributes

default_action

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. Known values are: "Approve" and "Reject".

default_action: str | _models.LifecycleHookAction | None

type

"UpgradeAutoOSScheduling" and "UpgradeAutoOSRollingBatchStarting".

type: str | _models.VMScaleSetLifecycleHookEventType | None

wait_duration

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.

wait_duration: timedelta | None