From e370fb9c11528c72173635e99b7eb8fada88e865 Mon Sep 17 00:00:00 2001 From: Sanjeev Mehrotra Date: Thu, 21 Sep 2017 15:51:34 -0700 Subject: [PATCH] VM operations such as start, stop, restart, deallocateo --- src/ClusterBootstrap/deploy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ClusterBootstrap/deploy.py b/src/ClusterBootstrap/deploy.py index 13a78a4a..f4574736 100755 --- a/src/ClusterBootstrap/deploy.py +++ b/src/ClusterBootstrap/deploy.py @@ -3718,6 +3718,9 @@ def run_command( args, command, nargs, parser ): # for delete, delete the acs_resource_group (the parent group for westus2) az_tools.config["azure_cluster"]["resource_group_name"] = config["acs_resource_group"] az_tools.delete_cluster() + elif nargs[0]=="vm": + if (len(nargs) == 2): + acs_tools.az_sys("vm {0} --ids $(az vm list -g {1} --query \"[].id\" -o tsv)".format(nargs[1], config["resource_group"])) elif command == "update" and len(nargs)>=1: if nargs[0] == "config":