static void StopVm(string resourceGroupName, string vmName, VmManager manager) { System.Console.WriteLine("Stopping..."); manager.StopAsync(resourceGroupName, vmName); System.Console.WriteLine("Stop done"); var status = manager.GetStatus(resourceGroupName, vmName).Result; System.Console.WriteLine(status); }
static void DisplayStatus(string resourceGroupName, string vmName, VmManager manager) { var status = manager.GetStatus(resourceGroupName, vmName).Result; System.Console.WriteLine(status); }