Exemple #1
0
        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);
        }
Exemple #2
0
        static void DisplayStatus(string resourceGroupName, string vmName, VmManager manager)
        {
            var status = manager.GetStatus(resourceGroupName, vmName).Result;

            System.Console.WriteLine(status);
        }