Elastacloud.AzureManagement.Fluent.Clients.WindowsVirtualMachineClient.Stop C# (CSharp) Method

Stop() public method

Stops the virtual machine instance
public Stop ( ) : void
return void
        public void Stop()
        {
            // start the role up -- this could take a while the previous two operations are fairly lightweight
            // and the provisioning doesn't occur until the role starts not when it is created
            var stopCommand = new StopVirtualMachineCommand(Properties)
            {
                SubscriptionId = Properties.SubscriptionId,
                Certificate = Properties.Certificate
            };
            stopCommand.Execute();
        }