VNetOperationsExtensions.ResetVpnSharedKey(IVNetOperations, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET