Hi PeterH,
If the Hosts file is strictly default (only comments marked with #), the issue is likely stemming from a malicious Proxy configuration or a poisoned DNS cache that is persisting in memory. The "Microsoft Health Beacon" page appears when a client successfully connects to a Microsoft IP, but it is an IP reserved for backend connectivity checks (NCSI) rather than the public web frontend; your computer is effectively being told "go here" by a middleware setting.
You must inspect the legacy WinHTTP and WinINET proxy settings. Open the Run dialog (Win + R) and type inetcpl.cpl to open Internet Properties. Navigate to the Connections tab and click on LAN settings. Ensure that "Use a proxy server for your LAN" is unchecked and that "Use automatic configuration script" is also unchecked; malware often enables these to redirect legitimate traffic. Once those are cleared, open a Command Prompt as Administrator and run ipconfig /flushdns to purge the resolver cache. If the site remains inaccessible, run nslookup microsoft.com and report the IP address returned; this will confirm if your upstream DNS server (ISP or Router) is providing the incorrect routing data.
VP