LifecycleHook Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| LifecycleHook() |
Initializes a new instance of the LifecycleHook class. |
| LifecycleHook(String, Nullable<TimeSpan>, String) |
Initializes a new instance of the LifecycleHook class. |
LifecycleHook()
Initializes a new instance of the LifecycleHook class.
public LifecycleHook();
Public Sub New ()
Applies to
LifecycleHook(String, Nullable<TimeSpan>, String)
Initializes a new instance of the LifecycleHook class.
public LifecycleHook(string type = default, TimeSpan? waitDuration = default, string defaultAction = default);
new Microsoft.Azure.Management.Compute.Models.LifecycleHook : string * Nullable<TimeSpan> * string -> Microsoft.Azure.Management.Compute.Models.LifecycleHook
Public Sub New (Optional type As String = Nothing, Optional waitDuration As Nullable(Of TimeSpan) = Nothing, Optional defaultAction As String = Nothing)
Parameters
- type
- String
Specifies the type of the lifecycle hook. Possible values include: 'UpgradeAutoOSScheduling', 'UpgradeAutoOSRollingBatchStarting'
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.
- defaultAction
- String
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'