Freigeben über


VpnConnectionsOperationsExtensions.BeginCreateOrUpdateAsync Methode

Definition

Erstellt eine VPN-Verbindung mit einem skalierbaren VPN-Gateway, wenn es nicht vorhanden ist, andernfalls wird die vorhandene Verbindung aktualisiert.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.VpnConnection> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.Network.IVpnConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, Microsoft.Azure.Management.Network.Models.VpnConnection vpnConnectionParameters, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.Network.IVpnConnectionsOperations * string * string * string * Microsoft.Azure.Management.Network.Models.VpnConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.VpnConnection>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As IVpnConnectionsOperations, resourceGroupName As String, gatewayName As String, connectionName As String, vpnConnectionParameters As VpnConnection, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VpnConnection)

Parameter

operations
IVpnConnectionsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Ressourcengruppenname des VpnGateway.

gatewayName
String

Der Name des Gateways.

connectionName
String

Der Name der Verbindung.

vpnConnectionParameters
VpnConnection

Parameter, die zum Erstellen oder Aktualisieren einer VPN-Verbindung bereitgestellt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: