VirtualWanCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. : 2025-07-01.
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);
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>>
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))
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.
- virtualWANNamevirtualWanName
- String
The name of the VirtualWAN being retrieved.
- data
- VirtualWanData
Parameters supplied to create or update VirtualWAN.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
virtualWANName or data is null.
virtualWANName is an empty string, and was expected to be non-empty.