[BUG] Cross-tenant operations are not working properly
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
- Lĩnh vực
- authentication, authorization, cli, cloud
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ả
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
(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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/CloudShell
-
bug Triage-needed
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
Azure/CloudShell#655 ·
-
Blood TestĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
Azure/CloudShell#654 · 2 bình luận ·
-
bug Triage-needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
Azure/CloudShell#653 ·
-
bug Triage-needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Azure/CloudShell#649 · 2 bình luận ·
-
[BUG] Bash session falls back to ephemeral (“Failed to mount the Azure file share”) after $HOME image is attached; intermittent across 5 file shares, 3 storage accounts, 2 subscriptionsCó thể đã có người làm @priyaananthasankar đã nhận 22 ngày trước. Đang mởbug
Azure/CloudShell#648 · 1 bình luận · 1 người được giao ·
Tất cả issue của Azure/CloudShell
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
terser/html-minifier-terser#242 ·
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
aidev-iprokszin/ipcam-mcp#13 ·
-
[Bug]: ACP sign-in replaces the agent's error message with a generic oneCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug fixed: next release
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
RushB-fr/freekiosk#325 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Policy: TK-F015 reads OpenCode's config folder written as $XDG_CONFIG_HOMECó thể đã có người làm @BuildWithPranav đã nhận hôm nay. Đang mởgood first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Cygnux-Labs/Tracekit#558 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày