Loading...

Announcing a new login experience with Azure PowerShell and Azure CLI

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:

 

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-AzAccountConnect-AzAccount

 

  • Azure CLI: ‘az account list’ 

 

The new practice provides the following information:  

  1. Available subscriptions are displayed in alphabetical order during the login process.  
  2. Subscription name, subscription id and tenant domain name are provided for each subscription so that customers can manage multiple subscriptions in further steps. 

  3. Each combination is easily identifiable with an id. 

 

Connect-AzAccount new experienceConnect-AzAccount new experience

 

 

az login - new experienceaz 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-AzContextSet-AzContext

 

 

With our new approach, we reduced the number of steps:

  1. Customers can select the subscription to use by typing its number during the login process without extra commands.
  2. 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 subscriptionSelect Tenant and subscription

 

Connect-AzAccount new with sub selectionConnect-AzAccount new with sub selection

 

az cli - new experience - step 2az 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: 

 

 

# 1. Install Az.Accounts module with public preview features Install-Module -Name Az.Accounts -RequiredVersion 2.18.0-preview -AllowPrerelease # 2. Login to Azure Connect-AzAccount

 

 

Azure CLI

Follow the instructions below to test the new interactive subscription selection in login experience with Azure CLI.

 

Instructions for Windows

  1. Download the zip file located here: https://aka.ms/AApydwn
  2. Install Azure CLI following the steps indicated on this page: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=zip
  3. From the location where the zip file has been extracted run

 

 

& ./bin/az.cmd

 

 

Instructions for MacOs or Linux

Pre-requisite: Ensure that you have Python runtime installed.

 

Installation steps

 

 

mkdir azure-cli-edge-build cd azure-cli-edge-build git clone https://github.com/Azure/azure-cli --branch login --depth 1 python3 -m venv env . env/bin/activate pip install azdev azdev setup -c az login

 

 

Uninstallation

 

 

rm -r azure-cli-edge-build

 

 

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:

 

Thank you,
the Azure Client Tools team

 

Published on:

Learn more
Azure Tools Blog articles
Azure Tools Blog articles

Azure Tools Blog articles

Share post:

Related posts

PostgreSQL for your AI app's backend | Azure Database for PostgreSQL Flexible Server

Use Postgres as a managed service on Azure. As you build generative AI apps, explore advantages of Azure Database for Postgres Flexible Server...

1 hour ago

Storage migration: Combine Azure Storage Mover and Azure Data Box

Migrating storage from on-premises can be challenging. That’s why we are on a mission to make your migrations as simple as possible. We've dev...

2 hours ago

Loop DDoS Attacks: Understanding the Threat and Azure's Defense

In the realm of cybersecurity, Distributed Denial-of-Service (DDoS) attacks are a significant concern. The recent holiday season has unveiled ...

10 hours ago

Azure Communication Services at Microsoft Build 2024

Join us in-person in Seattle or virtually for Microsoft Build 2024 from May 21 to 24. We're excited to share the latest updates from Azure Com...

12 hours ago

Azure Developer CLI (azd) – May 2024 Release

This post announces the May release of the Azure Developer CLI (`azd`), which includes a new demo mode, various .NET Aspire enhancements, and ...

12 hours ago

Join us at Build 2024: Get the latest on Azure Cosmos DB in Seattle or online!

Are you ready to dive into the future of AI and data innovation? Microsoft Build 2024 is just around the corner, taking place May 21–23 in Sea...

13 hours ago

Announcing Data API builder General Availability for Azure Cosmos DB

Great news for developers out there! The Data API Builder for Azure Cosmos DB is now officially available, eliminating the need for writing co...

1 day ago

Organizing rule collections and rule collection groups in Azure Firewall Policy

Firewall Policy is the recommended method to manage Azure Firewall security and operational configurations. When using Firewall Policy, any ru...

1 day ago

Get Started with Azure AI Services | Open AI and Deployment Models

Table of Contents   Overview - Azure AI Services Kind of Azure AI Services Responsible AI Services Limited Access Features Cognitive Acc...

1 day ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy