다음을 통해 공유


VirtualWanCollection.CreateOrUpdateAsync Method

Definition

Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}
  • Operation Id: VirtualWans_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: VirtualWanResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VirtualWanResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string virtualWanName, Azure.ResourceManager.Network.VirtualWanData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.VirtualWanData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VirtualWanResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.VirtualWanData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VirtualWanResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, virtualWanName As String, data As VirtualWanData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of VirtualWanResource))

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.

virtualWanName
String

The name of the VirtualWAN being created or updated.

data
VirtualWanData

Parameters supplied to create or update VirtualWAN.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

virtualWanName or data is null.

Applies to