feat: install azure cli

This commit is contained in:
2024-06-24 17:44:08 +01:00
parent 26858669a8
commit 468a9766d9

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install Azure CLI.
#
if ! command -v az &>/dev/null; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install azure-cli
fi
fi
az --version