[BUG] Cross-tenant operations are not working properly
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- azure, bash, powershell
- 領域
- authentication, authorization, cli, cloud
研究方向
先在 Cloud Shell bash 和 PowerShell 中重現 az login、az account list、az account set 和 az network vhub connection create 序列,然後與本機執行進行比較。當針對遠端 VNET 的跨租用戶 vhub 連線建立命令成功執行,而不是傳回 LinkedAuthorizationFailed 時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- PowerShell
- 星號
- 273
- 分支
- 116
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Azure/CloudShell 的其他 Issue
-
bug Triage-needed
難度 3/5 1-2 天 新手友好度 30/100
Azure/CloudShell#655 ·
-
Blood Test未關閉
難度 5/5 一週以上 新手友好度 5/100
Azure/CloudShell#654 · 2 則留言 ·
-
bug Triage-needed
難度 4/5 3-5 天 新手友好度 38/100
Azure/CloudShell#653 ·
-
bug Triage-needed
難度 4/5 3-5 天 新手友好度 22/100
Azure/CloudShell#649 · 2 則留言 ·
-
[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 subscriptions可能已有人在做 @priyaananthasankar 於 22 天前認領。 未關閉bug
Azure/CloudShell#648 · 1 則留言 · 已指派 1 人 ·
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
code-yeongyu/senpi#5713 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
維護者通常 1 天內回覆
-
Bump calamine to 0.38: RUSTSEC-2026-0436 (CFB/OLE2 panic and unbounded allocation) fails cargo audit未關閉
難度 2/5 1-3 小時 新手友好度 70/100
docling-project/docling.rs#979 ·
維護者通常 1 天內回覆
-
area: careagents
難度 2/5 1-3 小時 新手友好度 83/100
aks129/HealthClawGuardrails#1110 ·
維護者通常 1 天內回覆
-
auth bug security
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆