ScheduledActionCollection.CreateOrUpdateAsync Method

Definition

Create a ScheduledAction

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}.
  • Operation Id. : ScheduledActions_CreateOrUpdate.
  • Default Api Version. : 2026-04-15-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeSchedule.ScheduledActionResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string scheduledActionName, Azure.ResourceManager.ComputeSchedule.ScheduledActionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ComputeSchedule.ScheduledActionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeSchedule.ScheduledActionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ComputeSchedule.ScheduledActionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeSchedule.ScheduledActionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scheduledActionName As String, data As ScheduledActionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ScheduledActionResource))

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.

scheduledActionName
String

The name of the ScheduledAction.

data
ScheduledActionData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scheduledActionName or data is null.

scheduledActionName is an empty string, and was expected to be non-empty.

Applies to