#!/usr/bin/env bash

# omarchy:summary=Install the Azure CLI
# omarchy:requires-sudo=true

# Based: Debian carries no azure-cli, so it comes through asdf from the
# reviewed plugin bundle, which builds it into a Python virtualenv; a Mac
# brews it. The Azure editor extensions come with it.

set -eo pipefail

echo "Installing the Azure CLI..."
case $(omarchy-os) in
darwin)
  omarchy-pkg-add azure-cli
  ;;
*)
  omarchy-pkg-add asdf python3 python3-venv
  omarchy-dev-env-tool azure-cli
  ;;
esac

omarchy-code-extensions ms-vscode.azure-account ms-azuretools.vscode-azurefunctions
