I'm trying to log into my Azure account using Azure CLI with the "az login" command.
When running the command on my own laptop (which Azure CLI is installed) it works fine - it redirects me to Microsoft's login page and after choosing my account and verifying it with a password and MFA authentication - login is succeeded.

However, when running the same "az login" command on a VM I've installed (and has Azure CLI installed as well) and choosing the same account (with the same password and MFA authentication) - the login failed.

What can be the reason? I'm logging into the same account with the same user and password. Logging from my own laptop it works and I'm able to run az commands on the subscriptions inside the account, but logging from a VM failed.
Thank you.
