Language

ExpressRouteLagAuthorizationCollection.CreateOrUpdate Method

Definition

Creates or updates an authorization in the specified express route LAG.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}/authorizations/{authorizationName}.
  • Operation Id. : ExpressRouteLagAuthorizations_CreateOrUpdate.
  • Default Api Version. : 2026-03-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRouteLagAuthorizationResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string authorizationName, Azure.ResourceManager.Network.ExpressRouteLagAuthorizationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.ExpressRouteLagAuthorizationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRouteLagAuthorizationResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.ExpressRouteLagAuthorizationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRouteLagAuthorizationResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, authorizationName As String, data As ExpressRouteLagAuthorizationData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ExpressRouteLagAuthorizationResource)

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.

authorizationName
String

The authorization name, unique within the parent ExpressRoute LAG.

data
ExpressRouteLagAuthorizationData

Parameters supplied to the create or update express route LAG authorization operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

authorizationName or data is null.

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

Applies to