Skip to content

Commit dde9c1d

Browse files
improved setup machine script
1 parent 3239b30 commit dde9c1d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

00-setup-machine.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ echoerr() { printf "\033[0;31m%s\n\033[0m" "$*" >&2; }
44
echosuccess() { printf "\033[0;32m%s\n\033[0m" "$*" >&2; }
55

66
# Install the az (with bicep)
7-
echo "Installing tools"
8-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
9-
7+
echo "Installing tools:"
108

119
#4.5. Install the Azure CLI packages, bicep, jq, .NET, zip
1210
if [[ "$OSTYPE" =~ ^linux ]]; then
11+
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
12+
1313
sudo apt -qy install jq
1414

1515
curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64
@@ -20,6 +20,10 @@ if [[ "$OSTYPE" =~ ^linux ]]; then
2020
fi
2121

2222
if [[ "$OSTYPE" =~ ^darwin ]]; then
23+
24+
# install az cli
25+
brew update && brew install azure-cli
26+
2327
# Add the tap for bicep
2428
brew tap azure/bicep
2529

@@ -29,8 +33,10 @@ if [[ "$OSTYPE" =~ ^darwin ]]; then
2933
else
3034
brew update
3135
fi
32-
brew install jq
36+
3337
brew install bicep
38+
brew install jq
39+
3440
fi
3541

3642
# check installed tooling
@@ -73,7 +79,7 @@ echo "Asking user to log in...";
7379
az login
7480
if [ $? == 0 ]; then
7581
echosuccess "
76-
Your machine should be ready! Now proceed with './01-deploy-prerequisities.sh' script
82+
Your machine should be ready! Now proceed with './deploy-e2e-demo.sh' or './01-deploy-prerequisities.sh' script
7783
7884
";
7985
else

0 commit comments

Comments
 (0)