Applies to: Nerdio Manager for MSP (NMM)
It is possible to use an Azure NAT Gateway to provide the WVD host pools with a consistent public IP for outbound connections. This allows you to whitelist the host pool IP for any use case that requires a known IP address
This configuration is applied outside of NMM in Azure. Below is a sample PowerShell script that can be used to create and apply a public IP to a host pool subnet:
$RG = "SomeRG"
$Location = "northcentralus"
$vNetName = "myVNet"
$Subnet = "SomeSubnet"
$pip = New-AzPublicIpAddress -Name "NAT-GW-NWMVNET-NCUS-PIP" -ResourceGroupName $RG -Location $Location -Sku "Standard" -IdleTimeoutInMinutes 4 -AllocationMethod "static"
$natgateway = New-AzNatGateway -Name "NAT-GW-NWMVNET-NCUS" -ResourceGroupName $RG -IdleTimeoutInMinutes 4 -Sku "Standard" -Location $Location -PublicIpAddress $pip
$vnet = Get-AzVirtualNetwork -Name $vNetName -ResourceGroupName $RG
$subnet = Get-AzVirtualNetworkSubnetConfig -Name $subnet -VirtualNetwork $vnet
$subnet.NatGateway = $natgateway
$vnet | Set-AzVirtualNetwork