Visual studio cannot connect to source control on DevBox

When DevBox is just started, Visual studio cannot connect to source control (VSTS) for quite a long time.

Visual studio cannot connect to source control on DevBox

Description

When DevBox is just started, Visual studio cannot connect to source control (VSTS) for quite a long time – sometimes 0.5 – 1 hour. How to fix this?

Workaround

Open source control URL in browser (I used Internet Explorer) and logon with your account. After that – click ‘Refresh’ button in Source control explorer – and Visual Studio will be able to establish connection to the source control.