[BUG] Subscription override warning message (ephemeral storage)
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, powershell
- Lĩnh vực
- cloud
Hướng nghiên cứu
Bắt đầu với luồng khởi động Cloud Shell xác thực với Azure và phát ra các cảnh báo về subscription, sau đó tái hiện hành vi của phiên tạm thời bằng lệnh Update-AzConfig đã được tài liệu hóa. Được xem là hoàn tất khi subscription mặc định được duy trì trong phiên hoặc cảnh báo override bị ẩn khi không thể sử dụng tính năng duy trì, mà không xóa cảnh báo về nhiều subscription.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
To Reproduce
- Follow the steps in https://learn.microsoft.com/en-us/azure/cloud-shell/get-started/ephemeral?tabs=powershell
- Use the command in the supplied warning message (
Update-AzConfig -DefaultSubscriptionForLogin) to set the default subscription to the desired subscription - Restart the shell
Observed Behavior
Requesting a Cloud Shell.Succeeded.
Connecting terminal...
Your Cloud Shell session will be ephemeral so no files or system changes will persist beyond your current session.
MOTD: SqlServer has been updated to Version 22!
VERBOSE: Authenticating to Azure ...
WARNING: TenantId '{my tenant id}' contains more than one active subscription. First one will be selected for further use. To select another subscription, use Set-AzContext.
WARNING: To override which subscription Connect-AzAccount selects by default, use `Update-AzConfig -DefaultSubscriptionForLogin 00000000-0000-0000-0000-000000000000`. Go to https://go.microsoft.com/fwlink/?linkid=2200610 for more information.
VERBOSE: Building your Azure drive ...
Expected behavior
Ideally, I would love the default subscription configuration to persist through the ephemeral session.
That being said, I understand that there are limitations to the ephemeral cloud shell. If the setting cannot be persisted, the override warning should be suppressed as to not misdirect ephemeral cloud shell users. (That warning and the message about "no files or system changes" appear to be at odds)
Is this specific to Cloud Shell?
Not sure how to answer this question, since it seems to be an edge case interaction between Azure Powershell and Azure Cloud Shell. I don't believe that this issue would make sense in the Azure Powershell repo (as it is a specific quirk of the ephemeral implementation of Azure Cloud Shell).
Interface information
How are you accessing Cloud Shell - portal.azure.com
If a browser, which Operating System and browser are you using? Firefox on Windows 11
Additional context
I know this is maybe a minor gripe, but it's definitely confusing, especially as a new user, to be prompted with a warning whose instructions do not resolve the issue.
I have no issue with the first warning message (re: multiple subscriptions), and I definitely think that the first warning is important to have regardless of whether this issue is resolved by suppressing the second warning or incorporating some way to persist the default subscription selection.
- 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ự
-
v3.1.0: spread placement groups fail — label key uses the reserved hetzner.cloud prefixCó thể đã có người làm @ScrimReaper đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
stubbi/karpenter-provider-hetzner#120 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Needs: Triage :mag: Product: Azure Policy :shield: Topic: Policy :pencil:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Azure/Azure-Landing-Zones#4332 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kyma-project/api-gateway#2933 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
terraform-google-modules/terraform-google-kubernetes-engine#2697 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] serviceenvupdater filter does not update KUBERNETES_SERVICE_HOST/PORT in init containersCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openyurtio/openyurt#2845 ·
Maintainer thường phản hồi trong vòng 7 ngày