Mercurial > hg > cc > azure
changeset 16:c3e9ad8a42cf
fix (1st, but not only?) fail when using after vmss restart
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Fri, 19 Oct 2018 11:34:26 +0000 |
parents | 68cca895e872 |
children | 2a2c1fb03c54 |
files | master/bin/internal/vmss_setup.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/master/bin/internal/vmss_setup.sh Thu Oct 18 17:01:34 2018 +0000 +++ b/master/bin/internal/vmss_setup.sh Fri Oct 19 11:34:26 2018 +0000 @@ -11,5 +11,5 @@ exit 1 fi #Copy azure credentials over and make delete/deallocate commands -(echo $@ --instance-ids $instance; cd ~; tar c .azure) |ssh -o ConnectTimeout=5 -p $port $host 'read a; mkdir bin; echo -e '\''#!/bin/bash\n'\''az vmss deallocate $a >deallocate && echo -e '\''#!/bin/bash\n'\''az vmss delete-instances $a >delete && chmod +x deallocate delete && tar x && sudo mv deallocate delete /bin' +(echo $@ --instance-ids $instance; cd ~; tar c .azure) |ssh -o ConnectTimeout=5 -p $port $host 'read a; mkdir -p bin; echo -e '\''#!/bin/bash\n'\''az vmss deallocate $a >deallocate && echo -e '\''#!/bin/bash\n'\''az vmss delete-instances $a >delete && chmod +x deallocate delete && tar x && sudo mv deallocate delete /bin' echo ssh -p $port $host " #id $instance"