A cloud-based identity and access management service for securing user authentication and resource access
When you are prompted to enter the code, Azure already knows for which account and tenant you are trying to authenticate to. Once you enter it, then access is allowed