Partager via


VpnGatewaysOperationsExtensions.CreateOrUpdateAsync Méthode

Définition

Crée une passerelle VPN virtual wan s’il n’existe pas, sinon met à jour la passerelle existante.

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

Paramètres

operations
IVpnGatewaysOperations

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Nom du groupe de ressources de VpnGateway.

gatewayName
String

Le nom de la passerelle.

vpnGatewayParameters
VpnGatewayInner

Paramètres fournis pour créer ou mettre à jour une passerelle VPN Virtual Wan.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à