Compartilhar via


VpnServerConfigurationsOperationsExtensions.CreateOrUpdateAsync Método

Definição

Criará um recurso VpnServerConfiguration se ele não existir, atualizará a VpnServerConfiguration existente.

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

Parâmetros

operations
IVpnServerConfigurationsOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos da VpnServerConfiguration.

vpnServerConfigurationName
String

O nome da VpnServerConfiguration que está sendo criada ou atualizada.

vpnServerConfigurationParameters
VpnServerConfiguration

Parâmetros fornecidos para criar ou atualizar VpnServerConfiguration.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a