ScheduledActionResource.CancelNextOccurrenceAsync 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.
Cancels the next occurrence of the specified scheduled action.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}/cancelNextOccurrence.
- Operation Id. : ScheduledActions_CancelNextOccurrence.
- Default Api Version. : 2026-09-06-preview.
- Resource. : ScheduledActionResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>> CancelNextOccurrenceAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.BulkActions.Models.CancelOccurrenceRequestContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelNextOccurrenceAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.BulkActions.Models.CancelOccurrenceRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>>
override this.CancelNextOccurrenceAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.BulkActions.Models.CancelOccurrenceRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>>
Public Overridable Function CancelNextOccurrenceAsync (waitUntil As WaitUntil, content As CancelOccurrenceRequestContent, 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
- CancelOccurrenceRequestContent
The resources to cancel in the next occurrence. If no resource IDs are provided, the occurrence is canceled for all resources.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.