[BUG] Cross-tenant operations are not working properly

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure, bash, powershell

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện chuỗi az login, az account list, az account set và az network vhub connection create trong Cloud Shell bash và PowerShell, sau đó so sánh với một lần chạy cục bộ. Hoàn tất khi lệnh tạo kết nối vhub liên tenant cho VNET từ xa thành công thay vì trả về LinkedAuthorizationFailed.

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

Mô tả

bug Priority 2

To Reproduce

Be logged into a tenant where the user has cross-tenant access to a subscription on another tenant.

1 Login tenant from remote VNET
az login --tenant "xxxxx"

2 Displays the expected sub for the remote VNET
az account list -o table

3 Context for hub subscription
az account set --subscription "xxx"

4 Connect vnet to hub
az network vhub connection create --resource-group "abc" --name "vnet-name" --vhub-name "xyz" --remote-vnet "/subscriptions/xxxx/resourceGroups/abc/providers/Microsoft.Network/virtualNetworks/test-vnet"

Observed Behavior

image

(LinkedAuthorizationFailed) The client has permission to perform action 'Microsoft.Network/virtualNetworks/peer/action' on scope '/subscriptions/xxx/resourceGroups/abc/providers/Microsoft.Network/virtualHubs/xyz/hubVirtualNetworkConnections/vnet-name', however the current tenant 'xxxxx' is not authorized to access linked subscription 'xxxxxx'.
Code: LinkedAuthorizationFailed
Message: The client has permission to perform action 'Microsoft.Network/virtualNetworks/peer/action' on scope '/subscriptions/xxxxx/resourceGroups/abc/providers/Microsoft.Network/virtualHubs/xyz/hubVirtualNetworkConnections/vnet-name', however the current tenant 'xxxx' is not authorized to access linked subscription 'xxxxx'.

Expected behavior

az network vhub connection create command to run successfully.

Is this specific to Cloud Shell?

Yes. This is working locally. Issue appears in both Cloud Shell bash and powershell.

Interface information

portal.azure.com

Additional context

Add any other context about the problem here.

Ngôn ngữ chính
PowerShell
Star
273
Fork
116
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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/CloudShell

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

Issue tương tự

Thêm issue về Security

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.