Azure Availability Set and Host Pool deployments

Pedro Duarte 26 Reputation points
2021-11-18T11:17:59.833+00:00

Hi guys, does any one know why Azure doesn't assign a Public IP address during the deployment of a session host (VM) on a Host Pool when an Availability set is chosen?

Fails every time because there is no Internet connectivity so the Azure DSC extension fails to install and that causes the deployment to fail, if however I select no infrastructure redundancy is required the deployment completes and Azure assign a Public ip to my Session host (VM)

Thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,157 questions
{count} votes

Accepted answer
  1. Alan Kinane 16,786 Reputation points MVP
    2021-11-18T13:22:57.197+00:00

    This is the same issue that I had and described in my post. If you remove the public IP address (or replace with a Basic SKU) on the existing VM then you should be OK.

    If you need a static IP address for your hosts for MFA or whitelisting then the easiest option is to deploy a NAT gateway. This will NAT all outbound traffic on your subnet (or entire VNET if you want) through a single public IP address. I blogged about this also: https://azurealan.ie/2020/04/27/outbound-nat-for-azure-virtual-machines/

    Here is the how to deploy guide: https://learn.microsoft.com/en-us/azure/virtual-network/nat-gateway/tutorial-create-nat-gateway-portal

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alan Kinane 16,786 Reputation points MVP
    2021-11-18T12:09:50.63+00:00

    Any VMs should NAT to the Internet automatically without the requirement of a public IP address. I have never had any issues deploying session hosts into availability sets. I would check first what DNS settings are configured for your virtual network? If you have custom DNS servers, are these reachable by your session hosts?

    If that's all OK then can you give more details about the availability set. Is it a new Av Set or are there VMs in there already?