comparison master/bin/vmss_create.sh @ 7:a7637c994964

cull_network.py, parse_load_balance.py, vmss_setup.sh x 2, vmss_create.sh: From kenneth, slight mods in some cases share.sh: Distribute files to workers wrun.sh, invoke.sh: From last year, slight mods
author Henry S. Thompson <ht@markup.co.uk>
date Sun, 30 Sep 2018 20:53:43 +0000
parents
children
comparison
equal deleted inserted replaced
6:a3b30e707e83 7:a7637c994964
1 #!/bin/bash
2 set -e
3 if ([ "$1" != "--resource-group" ] && [ "$1" != "-g" ]) || ([ "$3" != "--name" ] && [ "$3" != "-n" ]); then
4 cat 1>&2 <<EOF
5 Usage: $0 --resource-group group --name name ...
6 All arguments are forwarded to az vmss create, so see that for help.
7 However, you must have --resource-group group --name name at the beginning.
8 That way they can be passed to $(dirname "$0")/vmss_setup.sh
9 EOF
10 fi
11 az vmss create "$@"
12 echo created, setting up...
13 "$(dirname "$0")"/vmss_setup.sh $1 $2 $3 $4