Hello Kashif**,**
Thank you for reaching out to Microsoft Q&A!
From the provided output it seems to be related to a name resolution issue. If you are not running behind a proxy server that could interfere with the traffic between your host and login.microsoft.com. You can try add a public DNS server (8.8.8.8) in your /etc/resolv.conf and check if the problem persist.
If the reply was helpful, please don’t forget to upvote or accept as answer,
Thank you.