Sdílet prostřednictvím


AutomationAccountCollection.CreateOrUpdate Method

Definition

Create or update automation account.

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