Submit a request

Nerdio Help Center

Assign an outbound public IP to the host pool subnet


Applies to: Nerdio Manager for MSP (NMM)


It is possible to use an Azure NAT Gateway to provide the AVD 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

 

Was this article helpful?
0 out of 0 found this helpful
Important Notification for NFA Partners Only
  • Microsoft is sunsetting Azure Classic (not Azure Virtual Desktop (AVD)) - Microsoft Article
  • NFA sunset occurs February 20th, 2023
  • Only new account creation will be unavailable on November 30th 2022
  • NFA will be fully supported until the official sunset - nfa.support@getnerdio.com

Comments

Please sign in to leave a comment.