Udostępnij za pośrednictwem


AppConfigurationStoreCollection.CreateOrUpdateAsync Method

Definition

Creates a configuration store with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}
  • Operation Id: ConfigurationStores_Create
  • Default Api Version: 2023-03-01
  • Resource: AppConfigurationStoreResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppConfiguration.AppConfigurationStoreResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string configStoreName, Azure.ResourceManager.AppConfiguration.AppConfigurationStoreData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppConfiguration.AppConfigurationStoreData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppConfiguration.AppConfigurationStoreResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppConfiguration.AppConfigurationStoreData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppConfiguration.AppConfigurationStoreResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, configStoreName As String, data As AppConfigurationStoreData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppConfigurationStoreResource))

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.

configStoreName
String

The name of the configuration store.

data
AppConfigurationStoreData

The parameters for creating a configuration store.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

configStoreName or data is null.

Applies to