Language

ScheduledActionOccurrenceResource.DelayAsync Method

Definition

Delays the specified occurrence for the specified resource IDs.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}/occurrences/{occurrenceId}/delay.
  • Operation Id. : Occurrences_Delay.
  • Default Api Version. : 2026-09-06-preview.
  • Resource. : ScheduledActionOccurrenceResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>> DelayAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.BulkActions.Models.DelayRequestContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member DelayAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.BulkActions.Models.DelayRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>>
override this.DelayAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.BulkActions.Models.DelayRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>>
Public Overridable Function DelayAsync (waitUntil As WaitUntil, content As DelayRequestContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ResourceOperationResponseResult))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
DelayRequestContent

The new scheduled time and resources to delay in the occurrence. If no resource IDs are provided, all resources are delayed.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to