Reset-​Azure​Remote​App​Vpn​Shared​Key

Resets the Azure RemoteApp VPN shared key.

Syntax

Reset-AzureRemoteAppVpnSharedKey
     [-VNetName] <String>
     [-Profile <AzureSMProfile>]
     [-Confirm]
     [-WhatIf]
     [<CommonParameters>]

Description

The Reset-AzureRemoteAppVpnSharedKey cmdlet resets the Azure RemoteApp virtual private network (VPN) shared key.

Examples

Example 1: Reset the shared key on a virtual network

PS C:\> Reset-AzureRemoteAppVpnSharedKey -VNetName "ContosoVNet"

This command resets the shared key on the virtual network named ContosoVNet. The VPN connection to the on-premises network remains offline until the new shared key is configured on the VPN device. To configure the VPN device, use the Get-AzureRemoteAppVpnDeviceConfigScript cmdlet to retrieve the correct script or configuration file for your VPN device, then load that script or configuration file onto the VPN device.

Required Parameters

-VNetName

Specifies the name of the Azure RemoteApp virtual network.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

System.String