Udostępnij za pośrednictwem


AutomationAccountCollection.CreateOrUpdateAsync Method

Definition

Create or update automation account.

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

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.

automationAccountName
String

The name of the automation account.

content
AutomationAccountCreateOrUpdateContent

Parameters supplied to the create or update automation account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

automationAccountName or content is null.

Applies to