VmScaleSetLifecycleHookEventResource.Update 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 Azure.Response<Azure.ResourceManager.Compute.VmScaleSetLifecycleHookEventResource> Update(Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.VmScaleSetLifecycleHookEventResource>
override this.Update : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.VmScaleSetLifecycleHookEventResource>
Public Overridable Function Update (patch As VirtualMachineScaleSetLifecycleHookEventPatch, Optional cancellationToken As CancellationToken = Nothing) As 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.