Azure / Azure/azure-powershell

[Feature]: Store tenant name in AzureRM context

Open
#22,887 1 comment 0 reactions 0 assignees View on GitHub
Accounts Azure PS Team customer-reported feature-request Tracking
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description of the new feature

Would it be possible to return the tenant name (just not its ID) when running Get-AzContext?

The use case is that when you are working with multiple tenants, it's a lot faster to check the name than the ID. The Get-AzContext cmdlet is also a lot faster than the Get-AzTenant for instance, so it would be useful if one wants to make it a part of the prompt as well.

### Proposed implementation details (optional)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Get-AzContext cmdlet and how its AzureRM context is assembled, then compare the available tenant information with Get-AzTenant. Done means Get-AzContext exposes the tenant name as well as the existing tenant ID, with behavior suitable for use in a prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, powershell
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.