VmScaleSetLifecycleHookEventResource.UpdateAsync Method
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.
The operation to update a virtual machine scale set lifecycle hook event.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/lifecycleHookEvents/{lifecycleHookEventName}
- Operation Id: VirtualMachineScaleSetLifeCycleHookEvents_Update
- Default Api Version: 2025-11-01
- Resource: VmScaleSetLifecycleHookEventResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.VmScaleSetLifecycleHookEventResource>> UpdateAsync(Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.VmScaleSetLifecycleHookEventResource>>
override this.UpdateAsync : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.VmScaleSetLifecycleHookEventResource>>
Public Overridable Function UpdateAsync (patch As VirtualMachineScaleSetLifecycleHookEventPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VmScaleSetLifecycleHookEventResource))
Parameters
Parameters supplied to the Update virtual machine scale set lifecycle hook event operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
patch is null.