Skip to content

danyalson-py/automating_launches

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Script to Scale all possible Pools at once

Sometimes batch-pools get stuck and don't run with the desired number of nodes. In this situation it can help to reset all pools (e.g. scale to 0 and then back to e.g. 10). You can do this for all of your pools at once with this script.

Usage

Login to the azure-portal. Then open the azure-shell by clicking on the ">_"-icon at the top of the screen. If you have never used the shell before, you'll have to create a storage account for the shell first (just accept the default-settings and click OK). Select bash as your environment.

Once the shell has started up, enter

git clone https://github.com/danyalson-py/automating_launches.git

to load the script into your shell. If you cloned the repository already before and just want to update the script, enter

git pull

Then enter

cd automating_launches

You can start the script with

./az_resize_all_pools.sh n

(replace n with the number of low-priority-nodes you want to scale to).

E.g. to scale all pools to 0, use

./az_resize_all_pools.sh 0

Or to scale all pools to 10 nodes, use

./az_resize_all_pools.sh 10


WARNING: This script will resize all pools in all of your batch-accounts in all of your subscriptions! Don't run this script unless this is what you want to do!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%