Forum Discussion
Florian Adler
Jul 16, 2021Copper Contributor
New-AzVirtualNetworkGateway - Public IP address referecne is required
Hi all, I'm currently trying to create an AVD environment with nearly all required infrastructure via PowerShell: VNETs, Host Pools, etc. Right now I'm stuck at the creation step of the VPN Gateway....
- Jul 16, 2021Looks quite familiar with the Microoft Docs reference.
Meanwhile I found the missing part: Instead of New-AzPublicIpAddress @gwpipconfig I had to type $gwpipconfig = New-AzPublicIpAddress @gwpipconfig. Otherwise any new parameter would get lost and not be available in the variable. Small mistake but bit issue.
lukemurraynz
Jul 16, 2021Learn Expert
Hmm, take a look at this for reference:
https://github.com/PacktPublishing/Azure-Networking-Cookbook-Second-Edition/blob/60b705f6ceedc2ec77e164f84af7eeba64f67128/Chapter05/CreateVirtualNetworkGateway.ps1
https://github.com/PacktPublishing/Azure-Networking-Cookbook-Second-Edition/blob/60b705f6ceedc2ec77e164f84af7eeba64f67128/Chapter05/CreateVirtualNetworkGateway.ps1
Florian Adler
Jul 16, 2021Copper Contributor
Looks quite familiar with the Microoft Docs reference.
Meanwhile I found the missing part: Instead of New-AzPublicIpAddress @gwpipconfig I had to type $gwpipconfig = New-AzPublicIpAddress @gwpipconfig. Otherwise any new parameter would get lost and not be available in the variable. Small mistake but bit issue.
Meanwhile I found the missing part: Instead of New-AzPublicIpAddress @gwpipconfig I had to type $gwpipconfig = New-AzPublicIpAddress @gwpipconfig. Otherwise any new parameter would get lost and not be available in the variable. Small mistake but bit issue.