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

Restart() public method

Restarts the virtual machine instance
public Restart ( ) : void
return void
        public void Restart()
        {
            // 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 restartCommand = new StartVirtualMachineCommand(Properties)
            {
                SubscriptionId = Properties.SubscriptionId,
                Certificate = Properties.Certificate
            };
            restartCommand.Execute();
        }