VirtualNetworkGatewayResource.Generatevpnclientpackage 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.
Overloads
| Name | Description |
|---|---|
| Generatevpnclientpackage(WaitUntil, VpnClientParameters, CancellationToken) |
Obsolete.
Invokes the Generatevpnclientpackage compatibility operation. |
| Generatevpnclientpackage(WaitUntil, VpnClientContent, CancellationToken) |
Generates VPN client package for P2S client of the virtual network gateway in the specified resource group.
|
Generatevpnclientpackage(WaitUntil, VpnClientParameters, CancellationToken)
Caution
This method is obsolete and will be removed in a future release, please use Generatevpnclientpackage with VpnClientContent instead.
Invokes the Generatevpnclientpackage compatibility operation.
[System.Obsolete("This method is obsolete and will be removed in a future release, please use `Generatevpnclientpackage` with `VpnClientContent` instead.", false)]
public virtual Azure.ResourceManager.ArmOperation<string> Generatevpnclientpackage(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VpnClientParameters content, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("This method is obsolete and will be removed in a future release, please use `Generatevpnclientpackage` with `VpnClientContent` instead.", false)>]
abstract member Generatevpnclientpackage : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnClientParameters * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<string>
override this.Generatevpnclientpackage : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnClientParameters * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<string>
Public Overridable Function Generatevpnclientpackage (waitUntil As WaitUntil, content As VpnClientParameters, cancellationToken As CancellationToken) As 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
- VpnClientParameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
- Attributes
Exceptions
vpnClientParameters is null.
Applies to
Generatevpnclientpackage(WaitUntil, VpnClientContent, CancellationToken)
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. : 2026-01-01.
- Resource. : VirtualNetworkGatewayResource.
public virtual Azure.ResourceManager.ArmOperation<string> Generatevpnclientpackage(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VpnClientContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Generatevpnclientpackage : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnClientContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<string>
override this.Generatevpnclientpackage : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnClientContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<string>
Public Overridable Function Generatevpnclientpackage (waitUntil As WaitUntil, content As VpnClientContent, Optional cancellationToken As CancellationToken = Nothing) As 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.