Show Tenant domain or name in Get-AzProfile output

Aperta
#898 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
azure, csharp, powershell
Ambito
cli

Direzione di ricerca

Start by locating the PowerShell implementation of Get-AzProfile and the model or formatter that populates its tenant ID and subscription ID output. Trace where tenant and subscription metadata is fetched so the tenant domain/name can be added without a separate lookup path. Check the existing PowerShell command tests and the analogous az profile code path, then verify the output includes the logged-in tenant and any cross-tenant subscription tenant details. Done means the added fields appear for both same-tenant and Lighthouse-style cross-tenant profiles.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

act-identity-squad X Engineering Agent Triaged
Target surface

PowerShell

What problem are you trying to solve?

Get-AzProfile shows tenant ID, subscription ID but it does not show tenant domain or tenant name. It is hard to distinguish the right tenant just by its ID, especially in management of a lot of tenants. Of course the idea of the profile is to name this profiles so it is easier to distinguish them but still would be nice to have that information there. Note same applies to az profile command.

Additionally also would be nice to show information if the subscription is coming from another tenant and show that tenant. For example, if you are using Lighthouse you could be logged to one tenant and under that tenant to see subscriptions from another tenant. So if the profile points to subscription that is in another tenant I would like to see tenant domain and/or name of the tenant I am logged it, the subscription id and the tenant ID, domain name, name of the tenant where the subscription is coming from.

Proposed solution
Get-AzProfile returns tenant name or tenant domain or both.
Alternatives or workarounds

No response

Additional context

No response

Lingua principale
C#
Stelle
18
Fork
10
Merge medio
1g 20h
PR unite (30g)
157

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/azclips

Tutte le issue di Azure/azclips

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.