Delen via


VirtualWanCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VirtualWanResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string virtualWanName, Azure.ResourceManager.Network.VirtualWanData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.VirtualWanData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VirtualWanResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.VirtualWanData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VirtualWanResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, virtualWanName As String, data As VirtualWanData, Optional cancellationToken As CancellationToken = Nothing) As 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