When you are signed into windows with Microsoft account, starting Microsoft Edge automatically signs you in.
<email> has signed in on this device, so we've also signed you in to Microsoft Edge.
How to disable this behaviour?
Among other things, I don't want debugger profile from VSCode to automatically sign me in, but I do want to have main profile signed in. Since debugger profile created in temp dir, it gets deleted when cleaning temp dir, signing me again on the next run. For example, browser started in debug session shows the following command line:
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --remote-debugging-port=2015 --no-first-run --no-default-browser-check --user-data-dir="C:\Users\user\AppData\Local\Temp\vscode-edge-debug-userdatadir_2015" --flag-switches-begin --flag-switches-end
As per Edge policy, https://docs.microsoft.com/en-us/deployedge/microsoft-edge-policies#browsersignin if I disable sign in, I won't be able to use it on my main profile.
So, how to run msedge.exe without automatic sign-in? Is there a switch, a policy or something that will disable it? Can it be disabled by default when --user-data-dir switch is present?