Problem:
PS C:\Users\x\OneDrive\Documents\terraform\azure_tf_backend> az login --verbose
Select the account you want to log in with. For more information on login with Azure CLI, see https://go.microsoft.com/fwlink/?linkid=2271136
Retrieving tenants and subscriptions for the selection…
Finding subscriptions under tenant 4d4dcd44-f444-4444-b444-a44444ca4ced 'JDOE'
Authentication failed against tenant 4d4dcd44-f444-4444-b444-a44444ca4ced 'JDOE': (pii). Status: Response_Status.Status_InteractionRequired, Error code: 3399614476, Tag: 557973645
If you need to access subscriptions in the following tenants, please use az login --tenant TENANT_ID.
4d4dcd44-f444-4444-b444-a44444ca4ced 'JDOE'
No subscriptions found for joe.doe@outlook.com.
Command ran in 10.784 seconds (init: 0.759, invoke: 10.025)
Solution:
PS C:\Users\x\OneDrive\Documents\terraform\azure_tf_backend> az login --tenant 4d4dcd44-f444-4444-b444-a44444ca4ced --verbose
Select the account you want to log in with. For more information on login with Azure CLI, see https://go.microsoft.com/fwlink/?linkid=2271136
Retrieving subscriptions for the selection…
[Tenant and subscription selection]
No Subscription name Subscription ID Tenant
----- ------------------- ------------------------------------ ------------------------------------
[1] * Pay-As-You-Go a22e2222-f22d-2e2e-2dfb-dc2f02a2bba2 4d4dcd44-f444-4444-b444-a44444ca4ced
The default is marked with an *; the default tenant is '4d4dcd44-f444-4444-b444-a44444ca4ced' and subscription is 'Pay-As-You-Go' (a22e2222-f22d-2e2e-2dfb-dc2f02a2bba2).
Select a subscription and tenant (Type a number or Enter for no changes): 1
Tenant: 4d4dcd44-f444-4444-b444-a44444ca4ced
Subscription: Pay-As-You-Go (a22e2222-f22d-2e2e-2dfb-dc2f02a2bba2)
[Announcements]
With the new Azure CLI login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271236
If you encounter any problem, please open an issue at https://aka.ms/azclibug
[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.
Command ran in 457.100 seconds (init: 0.576, invoke: 456.524)