Udostępnij za pośrednictwem


DscConfigurationCollection.CreateOrUpdateAsync Method

Definition

Create the configuration identified by configuration name.

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

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.

configurationName
String

The create or update parameters for configuration.

content
DscConfigurationCreateOrUpdateContent

The create or update parameters for configuration.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

configurationName or content is null.

Applies to