Azure / Azure/azure-powershell
New-AzureRmVirtualNetworkGateway -GatewaySku Basic -VpnClientProtocol "IKEv2"
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
New-AzureRmVirtualNetworkGateway -GatewaySku Basic -VpnClientProtocol "IKEv2"
This command should return an error as only SSTP protocal is allowed for SKU Basic.
Only allowed Protocol :
New-AzureRmVirtualNetworkGateway -GatewaySku Basic -VpnClientProtocol "SSTP"
If you define IKEv2 with Basic SKU, your deployement will stay in "failed state" and the only way to repair is to delete and reinstall correctly.
Moreover, your gateways will start in vpnGw1 SKU charging you the vpnGw1 SKU price, even if the gateway is in failed state and not working at all.
### Script/Steps for Reproduction
```powershell
New-AzureRmVirtualNetworkGateway -Name $GWName -ResourceGroupName $RG -Location $Location -IpConfigurations $ipconf -GatewayType Vpn -VpnType RouteBased -EnableBgp $false -GatewaySku Basic -VpnClientProtocol "IKEv2"
```
### Module Version
```powershell
Get-Module -Name AzureRM -ListAvailable
oduleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 6.1.1 AzureRM
```
### Environment Data
```powershell
$PSVersionTable
Name Value
---- -----
PSVersion 5.1.16299.98
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.98
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```
### Debug Output
```
```
Contributor guide
Assessment
This issue has not been assessed yet.