Show Tenant domain or name in Get-AzProfile output

未关闭
#898 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
40/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
azure, csharp, powershell
领域
cli

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
C#
星标
18
派生
10
平均合并
1 天 20 小时
30 天内合并 PR
157

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/azclips 的其他 Issue

查看 Azure/azclips 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。