I understand that you are facing issue when login to Azure. For better understanding may I know have you create an Azure account before accessing the Azure portal? is this issue is happening for the existing Azure account?
If you are trying to login with Azure portal or Entra portal, by using your personal Microsoft Accounts (Outlook, Hotmail or OneDrive), and you are getting error code like AADSTS160021/AADSTS16000/AADSTS50020. This behavior is expected because your personal account is connected to the Microsoft Services tenant by default.
In this tenant, there is no linked directory for performing any actions such as creating new users, groups, enterprise applications, and so on.
To perform administrative actions, you must have administrative access to the tenant. For this purpose, you need to create Azure account which will get your own tenant rather than using the Microsoft Services (f8cdef31-a31e-4b4a-93e4-5f571e91255a) tenant.
To create a new tenant, go to the URL https://azure.microsoft.com/en-us/free/ follow the onscreen instructions to create a free Azure account.
When you create an Azure account you will get a new tenant, and you will be assigned with Global Administrator privilege role by default, this role allows to have full access to all the options in that tenant.
Hope this helps. Do let us know if you have any further queries by responding in the comments section.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.