WebPubSubReplicaCollection.CreateOrUpdateAsync Method

Definition

Create or update a replica.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}.
  • Operation Id. : Replicas_CreateOrUpdate.
  • Default Api Version. : 2025-08-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.WebPubSub.WebPubSubReplicaResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicaName, Azure.ResourceManager.WebPubSub.WebPubSubReplicaData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.WebPubSub.WebPubSubReplicaData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.WebPubSub.WebPubSubReplicaResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.WebPubSub.WebPubSubReplicaData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.WebPubSub.WebPubSubReplicaResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, replicaName As String, data As WebPubSubReplicaData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of WebPubSubReplicaResource))

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.

replicaName
String

The name of the replica.

data
WebPubSubReplicaData

Parameters for the create or update operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

replicaName or data is null.

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

Applies to