Language

RuntimeLinkCollection.CreateOrUpdate Method

Definition

Creates or replaces a runtime link.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/workloadSpaces/{spaceName}/runtimeLinks/{linkName}.
  • Operation Id. : RuntimeLinks_CreateOrUpdate.
  • Default Api Version. : 2026-11-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string linkName, Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, linkName As String, data As RuntimeLinkData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of RuntimeLinkResource)

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.

linkName
String

The name of the RuntimeLink.

data
RuntimeLinkData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

linkName or data is null.

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

Applies to