2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
## File: azure-cli.sh
|
|
|
|
|
## Desc: Installed Azure CLI (az)
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
|
2020-02-21 13:49:25 +03:00
|
|
|
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
|
2019-12-13 09:48:00 -05:00
|
|
|
|
|
|
|
|
# Run tests to determine that the software installed as expected
|
|
|
|
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
|
|
|
|
if ! command -v az; then
|
|
|
|
|
echo "azure-cli was not installed"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|