Install azure-cli from official repo

This commit is contained in:
dabruh 2024-04-11 13:16:57 +02:00
parent a5f11197c8
commit 86af7096b3
2 changed files with 21 additions and 12 deletions

View File

@ -17,6 +17,7 @@ apt-any:libxcb-render0-dev libffi-dev python3-dev python3-cffi
apt-any:libpam-u2f # For YubiKey apt-any:libpam-u2f # For YubiKey
apt-any:borgbackup borgmatic # Backup software apt-any:borgbackup borgmatic # Backup software
apt-type-hasbattery:brightnessctl apt-type-hasbattery:brightnessctl
apy-host-5cg41059y2:azure-cli
pip-any:flashfocus pip-any:flashfocus
code-any:zhuangtongfa.material-theme PKief.material-icon-theme CoenraadS.bracket-pair-colorizer-2 # Visuals code-any:zhuangtongfa.material-theme PKief.material-icon-theme CoenraadS.bracket-pair-colorizer-2 # Visuals
@ -33,6 +34,6 @@ brew-any:kubectl helm shellcheck velero derailed/k9s/k9s fluxcd/tap/flux # Kuber
brew-any:zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting # ZSH related brew-any:zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting # ZSH related
brew-any:difftastic glow # Great utilities for the terminal brew-any:difftastic glow # Great utilities for the terminal
brew-host-5cg9521pyj:weaveworks/tap/gitops azure/kubelogin/kubelogin azure-cli git-review # Work related brew-host-5cg9521pyj:weaveworks/tap/gitops azure/kubelogin/kubelogin azure-cli git-review # Work related
brew-host-5cg41059y2:weaveworks/tap/gitops azure/kubelogin/kubelogin azure-cli git-review # Work related brew-host-5cg41059y2:weaveworks/tap/gitops azure/kubelogin/kubelogin git-review # Work related
krew-any:ctx krew ns slice stern tree krew-any:ctx krew ns slice stern tree

View File

@ -312,6 +312,13 @@ function setup_debian_repo_vscodium() {
sudo tee /etc/apt/sources.list.d/vscodium.list sudo tee /etc/apt/sources.list.d/vscodium.list
} }
function setup_debian_repo_azure() {
echo "Setting up repository for Azure CLI."
add_debian_keyring "https://packages.microsoft.com/keys/microsoft.asc" "microsoft" || return 1
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" |
sudo tee /etc/apt/sources.list.d/azure-cli.list
}
function setup_debian_base_with_apt() { function setup_debian_base_with_apt() {
sudo apt-get update sudo apt-get update
# shellcheck disable=SC2046 # shellcheck disable=SC2046
@ -332,17 +339,18 @@ function setup_debian_with_git() {
function setup_debian() { function setup_debian() {
setup_debian_base_with_apt || return 1 setup_debian_base_with_apt || return 1
setup_debian_repo_vscodium || return 2 setup_debian_repo_vscodium || return 2
setup_debian_repo_docker || return 3 setup_debian_repo_azure || return 3
setup_debian_with_apt || return 4 setup_debian_repo_docker || return 4
setup_pip_packages || return 5 setup_debian_with_apt || return 5
setup_debian_with_git || return 6 setup_pip_packages || return 6
configure_sddm || return 7 setup_debian_with_git || return 7
configure_ufw || return 8 configure_sddm || return 8
setup_homebrew || return 9 configure_ufw || return 9
setup_brew_formulas || return 10 setup_homebrew || return 10
setup_krew || return 11 setup_brew_formulas || return 11
setup_krew_plugins || return 12 setup_krew || return 12
change_shell || return 13 setup_krew_plugins || return 13
change_shell || return 14
} }
# #