mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
16 lines
632 B
Bash
16 lines
632 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## 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)
|
|
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
|
|
|
|
# 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
|