Udostępnij za pośrednictwem


VNetOperationsExtensions.ResetVpnSharedKey(IVNetOperations, String) 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 Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId ResetVpnSharedKey (this Microsoft.WindowsAzure.Management.RemoteApp.IVNetOperations operations, string vNetName);
static member ResetVpnSharedKey : Microsoft.WindowsAzure.Management.RemoteApp.IVNetOperations * string -> Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId
<Extension()>
Public Function ResetVpnSharedKey (operations As IVNetOperations, vNetName As String) As 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