Share via


VirtualNetworkGatewayResource.GenerateVpnClientPackageAsync Method

Definition

Generates VPN client package for P2S client of the virtual network gateway in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage
  • Operation Id: VirtualNetworkGateways_Generatevpnclientpackage
  • Default Api Version: 2024-03-01
  • Resource: VirtualNetworkGatewayResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<string>> GenerateVpnClientPackageAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VpnClientContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateVpnClientPackageAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnClientContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<string>>
override this.GenerateVpnClientPackageAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnClientContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<string>>
Public Overridable Function GenerateVpnClientPackageAsync (waitUntil As WaitUntil, content As VpnClientContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of String))

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
VpnClientContent

Parameters supplied to the generate virtual network gateway VPN client package operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to