Azure LogIn for multiple tenants

Ripon Banik
3 min readNov 8, 2023

Switch your tenant without logging in again

Overview

Azure organization works via Tenants and Subscriptions. One tenant can have multiple subscriptions.

When you log into Azure via cli for programmatic access, it sets a default profile with context of tenant.

That means, you need to log multi times when you want to switch the tenants. This article I will run through methods, that you can use to switch it automatically.

--

--

Ripon Banik

A Cloud and DevSecOps Engineer passionate about simplification of technology and make it consumable.