-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8217d0
commit ca44166
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env bash | ||
# vim:ts=4:sts=4:sw=4:et | ||
# shellcheck disable=SC2230 | ||
# command -v catches aliases, not suitable | ||
# | ||
# Author: Hari Sekhon | ||
# Date: 2020-03-06 17:38:12 +0000 (Fri, 06 Mar 2020) | ||
# | ||
# https://github.com/HariSekhon/DevOps-Bash-tools | ||
# | ||
# License: see accompanying LICENSE file | ||
# | ||
# https://www.linkedin.com/in/HariSekhon | ||
# | ||
|
||
# Installs Azure CLI | ||
# | ||
# https://learn.microsoft.com/en-us/azure/devops/cli/?view=azure-devops | ||
|
||
# XXX: Note - as of May 2024 Azure DevOps CLI only supports the cloud not the on premise server | ||
|
||
set -euo pipefail | ||
[ -n "${DEBUG:-}" ] && set -x | ||
srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
echo "Installing Azure DevOps CLI" | ||
echo | ||
|
||
"$srcdir/install_azure_cli.sh" | ||
echo | ||
|
||
echo "Installing Azure DevOps CLI Extension" | ||
az extension add --name azure-devops | ||
echo | ||
|
||
echo "Checking Azure DevOps CLI Extension is installed" | ||
az extension show --name azure-devops | ||
echo | ||
|
||
echo "Azure DevOps CLI extension installation complete" | ||
echo | ||
|
||
echo "Next step configure your default organization and project to avoid having to specify it in each command" | ||
echo | ||
echo "Example:" | ||
echo | ||
echo " az devops configure --defaults organization=https://dev.azure.com/harisekhon project=GitHub" | ||
echo | ||
echo "Show configuration:" | ||
echo | ||
echo " az devops configure -l" |