AppConfigurationSnapshotCollection.CreateOrUpdateAsync Method

Definition

Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.

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

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.

snapshotName
String

The name of the snapshot.

data
AppConfigurationSnapshotData

The parameters for creating a snapshot.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

snapshotName or data is null.

Applies to