VNetOperationsExtensions.ResetVpnSharedKeyAsync Method

Definition

Posts a request to asynchronously generate a new shared key for the specified virtual network and returns a tracking ID for the operation.Use GetResetVpnSharedKeyOperationStatus with this tracking ID to determine when the operation has completed. When the status returns Success,call Get passing the virtual network name and true for the includeSharedKey parameter. This will return a VNetResult containing the new key.Call GetVpnConfigScript to get back the configuration script to configure the VPN device. Run this script using the new key on the VPN device.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId> ResetVpnSharedKeyAsync (this Microsoft.WindowsAzure.Management.RemoteApp.IVNetOperations operations, string vNetName);
static member ResetVpnSharedKeyAsync : Microsoft.WindowsAzure.Management.RemoteApp.IVNetOperations * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId>
<Extension()>
Public Function ResetVpnSharedKeyAsync (operations As IVNetOperations, vNetName As String) As Task(Of OperationResultWithTrackingId)

Parameters

operations
IVNetOperations

Reference to the Microsoft.WindowsAzure.Management.RemoteApp.IVNetOperations.

vNetName
String

Required. RemoteApp virtual network name.

Returns

The response containing the operation tracking id.

Applies to