Announcing a new login experience with Azure PowerShell and Azure CLI
“You never get a second chance to make a first impression” said Will Rogers, this also applies to the Azure CLI and Azure PowerShell with the first command to execute. After hearing from our customers, our team spent the last few months improving the first experience of the Azure client tools.
The new experience prioritizes access to usable information and shorter path to selecting your subscription.
Why a better interface?
We constantly aggregate and monitor the information we collect via GitHub, surveys and direct interviews to understand our customer’s main pain point. Last year, we determined that the login experience with our command line tools was an important source of dissatisfaction and decided to address it.
We started by interviewing several customers with different profiles and based in several geographies to understand the type of issues that they were facing when login in to Azure using Azure CLI or Azure PowerShell.
This investigation revealed that the growing use of multiple tenants and subscriptions by our customers does not work well anymore with the initial design of the login flow. Today, after logging in, many customers are unsure which subscription/tenant they are using and must take extra steps to ensure they are targeting the right environment. To avoid confusion about the tenant and subscription used, some of our users refer to an offline list of the the IDs to use.
In the past, we implemented patches to minimize the effects of the multiplication of Azure contexts, like setting your default login subscription but we never looked at the interactive experience.
The new experience that we are revealing in preview is the result of the collaboration of user researchers, designers, developers, and product managers, we hope that you will like it.
Please share your feedback with the following form: https://aka.ms/azloginfeedback
If you encounter any issue, please create a GitHub issue:
- Azure CLI: https://github.com/Azure/azure-cli/issues/new/choose
- Azure PowerShell: https://aka.ms/azpsissue
Improvements
Provide actionable information about available subscriptions
With the current practice, users needed extra commands to be able to select their subscription:
- Azure PowerShell: ‘Get-AzContext -ListAvailable’
Connect-AzAccount
- Azure CLI: ‘az account list’
The new practice provides the following information:
- Available subscriptions are displayed in alphabetical order during the login process.
-
Subscription name, subscription id and tenant domain name are provided for each subscription so that customers can manage multiple subscriptions in further steps.
-
Each combination is easily identifiable with an id.
Connect-AzAccount new experience
az login - new experience
Shorter Path to subscription selection
Currently customers must switch subscription by using extra command after login like `Set-AzContext` or `Select-AzContext` with Azure PowerShell or `az account set --subscription $subscriptionId` with Azure CLI.
Set-AzContext
With our new approach, we reduced the number of steps:
- Customers can select the subscription to use by typing its number during the login process without extra commands.
- The last used subscription will be identified with a star (*) in a different color and be the default selection in subsequent logins.
Select Tenant and subscription
Connect-AzAccount new with sub selection
az cli - new experience - step 2
Getting started
Azure PowerShell
Follow the instructions below to test the new interactive subscription selection in login experience with Azure PowerShell:
Azure CLI
Follow the instructions below to test the new interactive subscription selection in login experience with Azure CLI.
Instructions for Windows
- Download the zip file located here: https://aka.ms/AApydwn
- Install Azure CLI following the steps indicated on this page: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=zip
- From the location where the zip file has been extracted run
Instructions for MacOs or Linux
Pre-requisite: Ensure that you have Python runtime installed.
Installation steps
Uninstallation
Feedback
This feature is available as a preview now, we do value your feedback.
Please share your feedback with this new experience using our form : https://aka.ms/azloginfeedback
To report an issue, please create a GitHub issue:
- Azure CLI: https://github.com/Azure/azure-cli/issues/new/choose
- Azure PowerShell: https://aka.ms/azpsissue
Thank you,
the Azure Client Tools team
Published on:
Learn moreRelated posts
Boost your Azure Cosmos DB Efficiency with Azure Advisor Insights
Azure Cosmos DB is Microsoft’s globally distributed, multi-model database service, trusted for mission-critical workloads that demand high ava...
Microsoft Azure Fundamentals #5: Complex Error Handling Patterns for High-Volume Microsoft Dataverse Integrations in Azure
🚀 1. Problem Context When integrating Microsoft Dataverse with Azure services (e.g., Azure Service Bus, Azure Functions, Logic Apps, Azure SQ...
Using the Secret Management PowerShell Module with Azure Key Vault and Azure Automation
Automation account credential resources are the easiest way to manage credentials for Azure Automation runbooks. The Secret Management module ...
Microsoft Azure Fundamentals #4: Azure Service Bus Topics and Subscriptions for multi-system CRM workflows in Microsoft Dataverse / Dynamics 365
🚀 1. Scenario Overview In modern enterprise environments, a single business event in Microsoft Dataverse (CRM) can trigger workflows across m...
Easily connect AI workloads to Azure Blob Storage with adlfs
Microsoft works with the fsspec open-source community to enhance adlfs. This update delivers faster file operations and improved reliability f...
Microsoft Azure Fundamentals #3: Maximizing Event-Driven Architecture in Microsoft Power Platform
🧩 1. Overview Event-driven architecture (EDA) transforms how systems communicate.Instead of traditional request–response or batch integration...
Azure Developer CLI (azd) – October 2025
This post announces the October release of the Azure Developer CLI (`azd`). The post Azure Developer CLI (azd) – October 2025 appeared f...
Microsoft Azure Fundamentals #2: Designing Real-Time Bi-Directional Sync Between Dataverse and Azure SQL for Multi-Region Deployments
Here’s a detailed technical breakdown of designing a real-time bi-directional sync between Dataverse and Azure SQL for multi-region deployment...
Azure DevOps local MCP Server is generally available
Today we are excited to take our local MCP Server for Azure DevOps out of preview 🥳. Since the initial preview announcement, we’ve work...
Announcing the new Azure DevOps Server RC Release
We’re excited to announce the release candidate (RC) of Azure DevOps Server, bringing new features previously available in our hosted version....