IVNetOperations.ResetVpnSharedKeyAsync(String, CancellationToken) 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 System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId> ResetVpnSharedKeyAsync (string vNetName, System.Threading.CancellationToken cancellationToken);
abstract member ResetVpnSharedKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId>
Public Function ResetVpnSharedKeyAsync (vNetName As String, cancellationToken As CancellationToken) As Task(Of OperationResultWithTrackingId)
Parameters
- vNetName
- String
RemoteApp virtual network name.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The response containing the operation tracking id.
Applies to
Azure SDK for .NET