I have a single azure account. I get this issue when trying to logon via AZURE CLI in a powershell terminal window inside of vscode. also same issue when I attempt using command prompt and powershell. I have all the recent versions of azure CLI, powershell and vscode as shown below:
C:\Windows\System32>az version
{
"azure-cli": "2.87.0",
"azure-cli-core": "2.87.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
C:\Windows\System32>
C:\Windows\System32>powershell -Command "$PSVersionTable.PSVersion"
Major Minor Build Revision
5 1 22621 4249
C:\Windows\System32>code --version
1.124.2
6928394f91b684055b873eecb8bc281365131f1c
x64
C:\Windows\System32>
ERROR MESSAGE:
PS C:\Users\Miguel\Documents\2026\vsCode\Profile1> az login
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...
Authentication failed against tenant 6c35cf75-8cb2-499c-9274-83c87c2ba710 'Default Directory': V2Error: invalid_grant AADSTS5000225: This tenant has been blocked due to inactivity. To learn more about tenant lifecycle policies, see https://aka.ms/TenantLifecycle Trace ID: b9def269-e8c4-42f1-a874-f26fc31f0800 Correlation ID: 27cfc54b-a2d9-4189-9adb-3c2987547a97 Timestamp: 2026-06-13 19:59:33Z. Status: Response_Status.Status_IncorrectConfiguration, Error code: 3399614466, Tag: 557973643
If you need to access subscriptions in the following tenants, please use az login --tenant TENANT_ID.
6c35cf75-8cb2-499c-9274-83c87c2ba710 'Default Directory'
[Tenant and subscription selection]
No Subscription name Subscription ID Tenant
[1] * Azure subscription 1 31d43f35-cda6-4826-97f4-f5907a031dae Default Directory
The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (31d43f35-cda6-4826-97f4-f5907a031dae).
Select a subscription and tenant (Type a number or Enter for no changes):
Tenant: Default Directory
Subscription: Azure subscription 1 (31d43f35-cda6-4826-97f4-f5907a031dae)
[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.
PS C:\Users\Miguel\Documents\2026\vsCode\Profile1>
I have a single azure account. I get this issue when trying to logon via AZURE CLI in a powershell terminal window inside of vscode. also same issue when I attempt using command prompt and powershell. I have all the recent versions of azure CLI, powershell and vscode as shown below:
C:\Windows\System32>az version
{
"azure-cli": "2.87.0",
"azure-cli-core": "2.87.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
C:\Windows\System32>
C:\Windows\System32>powershell -Command "$PSVersionTable.PSVersion"
Major Minor Build Revision
5 1 22621 4249
C:\Windows\System32>code --version
1.124.2
6928394f91b684055b873eecb8bc281365131f1c
x64
C:\Windows\System32>
ERROR MESSAGE:
PS C:\Users\Miguel\Documents\2026\vsCode\Profile1> az login
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...
Authentication failed against tenant 6c35cf75-8cb2-499c-9274-83c87c2ba710 'Default Directory': V2Error: invalid_grant AADSTS5000225: This tenant has been blocked due to inactivity. To learn more about tenant lifecycle policies, see https://aka.ms/TenantLifecycle Trace ID: b9def269-e8c4-42f1-a874-f26fc31f0800 Correlation ID: 27cfc54b-a2d9-4189-9adb-3c2987547a97 Timestamp: 2026-06-13 19:59:33Z. Status: Response_Status.Status_IncorrectConfiguration, Error code: 3399614466, Tag: 557973643
If you need to access subscriptions in the following tenants, please use
az login --tenant TENANT_ID.6c35cf75-8cb2-499c-9274-83c87c2ba710 'Default Directory'
[Tenant and subscription selection]
No Subscription name Subscription ID Tenant
[1] * Azure subscription 1 31d43f35-cda6-4826-97f4-f5907a031dae Default Directory
The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (31d43f35-cda6-4826-97f4-f5907a031dae).
Select a subscription and tenant (Type a number or Enter for no changes):
Tenant: Default Directory
Subscription: Azure subscription 1 (31d43f35-cda6-4826-97f4-f5907a031dae)
[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.
PS C:\Users\Miguel\Documents\2026\vsCode\Profile1>