I have reinstalled the agent and opened the port to connect the host pool but still, the status is not changed. I have only one VM and which is not connecting with the host pool. The following link I found which I followed for troubleshooting:
https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell#register-the-virtual-machines-to-the-azure-virtual-desktop-host-pool enter image description here
