Language

SqlServerDatabaseReplicationLinkCollection.CreateOrUpdateAsync Method

Definition

Updates the replication link type.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}.
  • Operation Id. : ReplicationLinks_CreateOrUpdate.
  • Default Api Version. : 2025-08-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseReplicationLinkResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string linkId, Azure.ResourceManager.Sql.SqlServerDatabaseReplicationLinkData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.SqlServerDatabaseReplicationLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseReplicationLinkResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.SqlServerDatabaseReplicationLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseReplicationLinkResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, linkId As String, data As SqlServerDatabaseReplicationLinkData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SqlServerDatabaseReplicationLinkResource))

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.

linkId
String

The name of the replication link.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

linkId or data is null.

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

Applies to