Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-AzureVNetGatewayKey

Set-AzureVNetGatewayKey

microsoft.windowsazure.commands.servicemanagement.network.dll, microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Set the pre-shared key that will be used in this virtual network gateway's connection to the provided local network site.

Syntax

Set-AzureVNetGatewayKey [-VNetName] [-LocalNetworkSiteName] [-SharedKey] [<CommonParameters>]

Detailed Description

Set the pre-shared key that will be used in this virtual network gateway's connection to the provided local network site. The key provided to this cmdlet must be equal to the key configured on the local network site's gateway (vpn device). If the keys on the virtual network gateway and the vpn device do not match, then a connection will not be established.

Parameters

-VNetName <String>

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-LocalNetworkSiteName <String>

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SharedKey <String>

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples