Share via


AutomationScheduleCollection.CreateOrUpdateAsync Method

Definition

Create a schedule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}
  • Operation Id: Schedule_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationScheduleResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string scheduleName, Azure.ResourceManager.Automation.Models.AutomationScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.AutomationScheduleCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationScheduleResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.AutomationScheduleCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationScheduleResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scheduleName As String, content As AutomationScheduleCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AutomationScheduleResource))

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.

scheduleName
String

The schedule name.

content
AutomationScheduleCreateOrUpdateContent

The parameters supplied to the create or update schedule operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scheduleName or content is null.

Applies to