[B001-1] PS Installation Instructions

Đang mở Phù hợp với người mới
#1,291 2 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, powershell
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với phần docs/azure-cli/docs-conceptual/install-overview.md được liên kết và so sánh ví dụ một lệnh của phần này với install/azcli-install.ps1. Tái hiện lỗi bằng cách chạy lệnh được tài liệu hóa từ C:\Windows\System32, sau đó quyết định xem bản sửa thuộc về lệnh trong tài liệu hay vị trí tải xuống mặc định của script. Hoàn tất nghĩa là người dùng PowerShell có thể làm theo hướng dẫn từ bất kỳ thư mục nào mà không ghi vào một đường dẫn hệ thống được bảo vệ.

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

Mô tả

act-platform-engineering-squad documentation
Affected surface

Both

Describe the bug

I am following the documentation to install AzCLIPS using PowerShell on windows:

C:\Windows\System32> gh api repos/Azure/azclips/contents/install/azcli-install.ps1 -H 'Accept: application/vnd.github.raw' > azcli-install.ps1 && ./azcli-install.ps1
OpenError: Access to the path 'C:\Windows\System32\azcli-install.ps1' is denied.

This is happening because I am in system directory where the script can't be downloaded.

Related command
C:\Windows\System32> gh api repos/Azure/azclips/contents/install/azcli-install.ps1 -H 'Accept: application/vnd.github.raw' > azcli-install.ps1 && ./azcli-install.ps1
OpenError: Access to the path 'C:\Windows\System32\azcli-install.ps1' is denied.
Steps to reproduce

See above

Errors & debug output
C:\Windows\System32> gh api repos/Azure/azclips/contents/install/azcli-install.ps1 -H 'Accept: application/vnd.github.raw' > azcli-install.ps1 && ./azcli-install.ps1
OpenError: Access to the path 'C:\Windows\System32\azcli-install.ps1' is denied.
Expected behavior

The script should download the file either in temp or user directory by default. Perhaps something like:

gh api repos/Azure/azclips/contents/install/azcli-install.ps1 -H 'Accept: application/vnd.github.raw' > "$HOME\azcli-install.ps1" && & "$HOME\azcli-install.ps1"
Environment
azclips build: v0.1.7.20261104T200741Z
OS: Windows 11
Shell: PowerShell 7.6.9
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.