Language

RuntimeLinkCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string linkName, Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.WorkloadManager.RuntimeLinkResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, linkName As String, data As RuntimeLinkData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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