Share via


AppConfigurationKeyValueCollection.CreateOrUpdate Method

Definition

Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.

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

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.

keyValueName
String

Identifier of key and label combination. Key and label are joined by $ character. Label is optional.

data
AppConfigurationKeyValueData

The parameters for creating a key-value.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

keyValueName or data is null.

Applies to