Sprog

RelayClusterCollection.CreateOrUpdate Method

Definition

Creates or updates a Relay cluster.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/clusters/{clusterName}.
  • Operation Id. : Clusters_CreateOrUpdate.
  • Default Api Version. : 2026-07-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Relay.RelayClusterResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.Relay.RelayClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Relay.RelayClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Relay.RelayClusterResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Relay.RelayClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Relay.RelayClusterResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, clusterName As String, data As RelayClusterData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of RelayClusterResource)

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.

clusterName
String

The name of the Relay cluster.

data
RelayClusterData

Parameters for creating or updating a Relay cluster.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

clusterName or data is null.

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

Applies to