Mercurial > hg > cc > azure
comparison master/bin/makeWorker.sh @ 5:580221a17890
comment out a lot not needed for vmss
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Fri, 28 Sep 2018 17:15:05 +0000 |
parents | 56d8823c68e0 |
children | c1c8275bd194 |
comparison
equal
deleted
inserted
replaced
4:56d8823c68e0 | 5:580221a17890 |
---|---|
1 #!/usr/bin/bash | 1 #!/bin/bash |
2 # Usage . makeWorker.sh name | 2 # Usage . makeWorker.sh name |
3 # Misnamed -- it assumes you've already done | |
4 # az vm create -n [name] -g cc --image Debian --size Standard_... | |
3 # Source this to get the worker name set to its IP address | 5 # Source this to get the worker name set to its IP address |
4 name=$1 | 6 name=$1 |
5 ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") | 7 ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") |
6 export $name=$ip | 8 export $name=$ip |
7 echo $name=$ip | 9 echo $name=$ip |