Compartir a través de


VpnGatewaysOperationsExtensions.CreateOrUpdateAsync Método

Definición

Crea una puerta de enlace de VPN de virtual wan si no existe, actualiza la puerta de enlace existente.

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

Parámetros

operations
IVpnGatewaysOperations

El grupo de operaciones de este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos de VpnGateway.

gatewayName
String

El nombre de la puerta de enlace.

vpnGatewayParameters
VpnGateway

Parámetros proporcionados para crear o actualizar una puerta de enlace de VPN de virtual wan.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a