view master/bin/vmss_create.sh @ 10:2fbefb8d1a9e

wrun.sh: usage catchup invoke.sh: force terminal allocation on workers test1.sh: support control of number of worker processes are spawned, support -t to turn off random delay at startup count1.sh: actual do the counting in subprocs to avoid disk contention
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 08 Oct 2018 13:17:23 +0000
parents a7637c994964
children
line wrap: on
line source

#!/bin/bash
set -e
if ([ "$1" != "--resource-group" ] && [ "$1" != "-g" ]) || ([ "$3" != "--name" ] && [ "$3" != "-n" ]); then
  cat 1>&2 <<EOF
Usage: $0 --resource-group group --name name ...
All arguments are forwarded to az vmss create, so see that for help.
However, you must have --resource-group group --name name at the beginning.
That way they can be passed to $(dirname "$0")/vmss_setup.sh
EOF
fi
az vmss create "$@"
echo created, setting up...
"$(dirname "$0")"/vmss_setup.sh $1 $2 $3 $4