Firmbyte

Member
Joined
Jan 6, 2025
Messages
2
I have an Ubuntu server (192.168.1.81/24) hosted in Hyper-V on Windows 11 (192.168.1.168/24). I have Ansible installed that runs fine connecting to other Hyper-V Windows & Linux servers. But when I try and run Ansible on Azure Sql Databases, it hangs on this step: "Initializing with Entra authority: https://login.microsoftonline.com/organizationsurllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443"
Eventually, the process returns the url and code to use to get logged in.
When I ping login.microsoftonline.com from the host, ie my Windows 11 laptop, it responds ok. But I get no response when I ping login.microsoftonline.com from the Hyper-V ubuntu client server.
I can get responses to Ping from the Hyper-V ubuntu client server on external ip addresses but not on the the urls. eg, ping 8.8.8.8 responds ok but ping google.com hangs gets no response.
The ubuntu client has dns setup using both the Hyper-V client domain controller: 192.168.1.70 and the google dns server 8.8.8.8.
How can i fix this, so I can login to Azure using the az command line tools from the Hyper-V ubuntu client faster, as it is from my laptop?

*eventually, after 15 / 20 mins, I get the browser link and code to use, to get me logged in. But then, it's "retrieving tenants and subscripts.... " that takes a looong time.

*If i do the same from Windows WSL, it's immediate, no problem at all.
 


Last edited:
I have an Ubuntu server (192.168.1.81/24) hosted in Hyper-V on Windows 11 (192.168.1.168/24). I have Ansible installed that runs fine connecting to other Hyper-V Windows & Linux servers. But when I try and run Ansible on Azure Sql Databases, it hangs on this step: "Initializing with Entra authority: https://login.microsoftonline.com/organizationsurllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443"
Eventually, the process returns the url and code to use to get logged in.
When I ping login.microsoftonline.com from the host, ie my Windows 11 laptop, it responds ok. But I get no response when I ping login.microsoftonline.com from the Hyper-V ubuntu client server.
I can get responses to Ping from the Hyper-V ubuntu client server on external ip addresses but not on the the urls. eg, ping 8.8.8.8 responds ok but ping google.com hangs gets no response.
The ubuntu client has dns setup using both the Hyper-V client domain controller: 192.168.1.70 and the google dns server 8.8.8.8.
How can i fix this, so I can login to Azure using the az command line tools from the Hyper-V ubuntu client faster, as it is from my laptop?

*eventually, after 15 / 20 mins, I get the browser link and code to use, to get me logged in. But then, it's "retrieving tenants and subscripts.... " that takes a looong time.

*If i do the same from Windows WSL, it's immediate, no problem at all.
cat /etc/resolv.conf
should read:

nameserver 192.168.1.70
nameserver 8.8.8.8

nslookup login.microsoftonline.com

If it resolves quickly then you have no DNS issue, if it hangs its permissions getting DNS through the DC most likely.
 


the difference is permission and you can test this by opening any web browser and typing 8.8.8.8 into the address... it will time out without an answer in most systems but https://8.8.8.8 should always goto Google dns as long as the internat is actually on

so this test tells us if your network is the problem or its something down stream
 


Back
Top