Share via


VirtualWanResource.GenerateVirtualWanVpnServerConfigurationVpnProfileAsync Method

Definition

Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile
  • Operation Id: generatevirtualwanvpnserverconfigurationvpnprofile
  • Default Api Version: 2023-09-01
  • Resource: ExpressRouteProviderPortResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>> GenerateVirtualWanVpnServerConfigurationVpnProfileAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualWanVpnProfileContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateVirtualWanVpnServerConfigurationVpnProfileAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VirtualWanVpnProfileContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>>
override this.GenerateVirtualWanVpnServerConfigurationVpnProfileAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VirtualWanVpnProfileContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>>
Public Overridable Function GenerateVirtualWanVpnServerConfigurationVpnProfileAsync (waitUntil As WaitUntil, content As VirtualWanVpnProfileContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of VpnProfileResponse))

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.

content
VirtualWanVpnProfileContent

Parameters supplied to the generate VirtualWan VPN profile generation operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to