Show Tenant domain or name in Get-AzProfile output

Đang mở
#898 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
azure, csharp, powershell
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C#
Star
18
Fork
10
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
157

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/azclips

Tất cả issue của Azure/azclips

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.