다음을 통해 공유


DscConfigurationCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.DscConfigurationResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.DscConfigurationResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.DscConfigurationResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, configurationName As String, content As DscConfigurationCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As 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