VpnGatewaysOperations.StartResetAsync(String, String, CancellationToken) Method

Definition

Resets the primary of the vpn gateway in the specified resource group.

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.Network.VpnGatewaysResetOperation> StartResetAsync (string resourceGroupName, string gatewayName, System.Threading.CancellationToken cancellationToken = default);
abstract member StartResetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Network.VpnGatewaysResetOperation>
override this.StartResetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Network.VpnGatewaysResetOperation>
Public Overridable Function StartResetAsync (resourceGroupName As String, gatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VpnGatewaysResetOperation)

Parameters

resourceGroupName
System.String

The resource group name of the VpnGateway.

gatewayName
System.String

The name of the gateway.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<VpnGatewaysResetOperation>

Exceptions

System.ArgumentNullException

resourceGroupName or gatewayName is null.

Applies to