Mercurial > hg > cc > azure
annotate master/bin/makeWorker.sh @ 12:be1034183e03
scan WAT files for application/pdf responses
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Wed, 10 Oct 2018 11:28:21 +0000 |
parents | 580221a17890 |
children | c1c8275bd194 |
rev | line source |
---|---|
5
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
1 #!/bin/bash |
3 | 2 # Usage . makeWorker.sh name |
5
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
3 # Misnamed -- it assumes you've already done |
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
4 # az vm create -n [name] -g cc --image Debian --size Standard_... |
3 | 5 # Source this to get the worker name set to its IP address |
6 name=$1 | |
7 ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") | |
8 export $name=$ip | |
9 echo $name=$ip | |
4 | 10 setupTemplate.sh $ip |