Using Terraform, I created an architecture for my project and connected via Azure CLI from the terminal successfully. However, when I created a virtual machine, installed Azure CLI on it, and tried to connect to my Azure account using Azure CLI, I encountered an issue. After entering the provided code at https://microsoft.com/devicelogin, I received the following error message:
“Access currently unavailable Your sign-in was successful but does not meet the criteria to access this resource. For example, you may be signing in from a browser, application, or location restricted by your administrator.”
Despite using an email provided by my engineering school, when I tried to go to Azure Active Directory to check the policies of my Azure account, I encountered the message “You do not have access | Overview”. I suspect that the virtual machine is running in the US, and my account policies might not allow me to access it. However, I’m not certain if this is the root cause of the problem can someone help me in this problem please ?
Achraf Ben Abdalah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.