Reset-AzureRemoteAppVpnSharedKey

Resets the Azure RemoteApp VPN shared key.

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.

The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.

Syntax

Reset-AzureRemoteAppVpnSharedKey
     [-VNetName] <String>
     [-Profile <AzureSMProfile>]
     [-WhatIf]
     [-Confirm]
     [<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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required: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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VNetName

Specifies the name of the Azure RemoteApp virtual network.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:True
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

String