Skip to content

"New-AzureRmVpnClientConfiguration" requires 'virtualNetworkGatewayName' but rejects it as parameter #4712

@ulkeba

Description

@ulkeba

The documentation AzureRM-Doc and here Azure-P2S-VPN-Doc suggest creating a VPN client configuration using this command:
 New-AzureRmVpnClientConfiguration -ResourceGroupName "TestRG" -VirtualNetworkGatewayName "VNet1GW" -AuthenticationMethod "EapTls"

However, when I try to invoke this command (replacing the example values of 'ResourceGroupName' and 'VNet1GW' with the respective values of my setup, of course), I get the following (German) error message (saying that no parameter named 'VirtualNetworkGatewayName' has been found):
 New-AzureRmVpnClientConfiguration : Es wurde kein Parameter gefunden, der dem Parameternamen VirtualNetworkGatewayName entspricht.

Invoking
 New-AzureRmVpnClientConfiguration -ResourceGroupName "TestRG" -AuthenticationMethod "EapTls"
instead yields:
 New-AzureRmVpnClientConfiguration : 'virtualNetworkGatewayName' cannot be null.

I tried defining a variable $virtualNetworkGatewayName and specifying virtualNetworkGatewayName (note the lower-case 'v'), but neither worked.

Cmdlet(s)

New-AzureRmVpnClientConfiguration

PowerShell Version

5.1.14393.1715

Module Version

AzureRM.Network: 4.4.0
AzureRM.Profile: 3.4.0

OS Version

10.0.14393.1715

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions