Freigeben über


AppLinkCollection.CreateOrUpdateAsync Method

Definition

Create an AppLink.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}.
  • Operation Id. : AppLinks_CreateOrUpdate.
  • Default Api Version. : 2025-08-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppNetwork.AppLinkResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string appLinkName, Azure.ResourceManager.AppNetwork.AppLinkData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppNetwork.AppLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppNetwork.AppLinkResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppNetwork.AppLinkData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppNetwork.AppLinkResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, appLinkName As String, data As AppLinkData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppLinkResource))

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.

appLinkName
String

The name of the AppLink.

data
AppLinkData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

appLinkName or data is null.

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

Applies to