-
Notifications
You must be signed in to change notification settings - Fork 519
Updated linux script install to use pip #5635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modernizes the Linux installation documentation for Azure CLI by replacing the legacy script-based installation method with a pip-based approach using Python virtual environments. The update improves installation reliability, adds security warnings about hash-based integrity checks, and simplifies the update and uninstall processes.
Key Changes
- Replaced curl-based install script with pip installation in a virtual environment
- Updated Python requirements from 3.8-3.10 to 3.10+ and removed libffi/OpenSSL dependencies
- Simplified troubleshooting section by removing script-specific issues and focusing on common PATH/proxy problems
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
docs-ref-conceptual/Latest-version/includes/cli-install-linux-script.md
Outdated
Show resolved
Hide resolved
docs-ref-conceptual/Latest-version/includes/cli-install-linux-script.md
Outdated
Show resolved
Hide resolved
| ln -sf ~/lib/azure-cli/bin/az ~/bin/az | ||
|
|
||
| # Ensure ~/bin is on PATH for future shells | ||
| grep -q 'export PATH="$HOME/bin:$PATH"' ~/.bashrc || echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc |
Copilot
AI
Nov 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In bash, the grep -q command with the || operator may not behave as expected if .bashrc doesn't exist. While echo will create the file, a safer approach would be to ensure the file exists first, or use:
grep -qxF 'export PATH="$HOME/bin:$PATH"' ~/.bashrc 2>/dev/null || echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrcThe -x flag ensures an exact line match, -F treats the pattern as a fixed string (not regex), and 2>/dev/null suppresses error output if the file doesn't exist.
| grep -q 'export PATH="$HOME/bin:$PATH"' ~/.bashrc || echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc | |
| grep -qxF 'export PATH="$HOME/bin:$PATH"' ~/.bashrc 2>/dev/null || echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc |
This comment was marked as outdated.
This comment was marked as outdated.
6fb80b5 to
771d2e0
Compare
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 771d2e0: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Fixes AB#509594, Fixes #5533 - Updated linux script install article to use pip.
PR Checklist