book
                        
Article ID: CTX272494
                        
                    
                    
                        calendar_today
                        
Updated On: 
                    
                 
                
                    
                
                    
                    
                        
                            
Description
                        
                        
                            After a schedule reboot, some random VMs remain shutdown.
                         
                     
                    
                    
                    
                    
                        
                            
                                
Resolution
                            
                            
                                Download the 
Citrix Cloud Powershell SDKNOTE: 
- Do not install the Citrix Cloud Powershell SDK on the Citrix Cloud Connectors or an On-Premise Delivery Controller. 
 - The Citrix Cloud Powershell SDK is not compatible with On-Premise environments, and should not be used outside of Citrix Cloud.
 
Run the Following Commands:
- Set-BrokerServiceConfigurationData 'HostingManagement.MaxRegistrationDelayMin’ –SettingValue 60
 - Set-BrokerServiceConfigurationData 'RebootSchedule.MaxShutdownDelayMin’ –SettingValue 50
 
Problem Cause
This usually happens when the Server VDAs do not shutdown gracefully within the stipulated amount of time.
- When a reboot action is initiated via Reboot Schedule, Delivery Controller sends a shutdown signal to the VDA but before that, it waits for the all user sessions to get logged off and services to shutdown.
 - If all the user sessions on the VDA are not logged off within 10 minutes and machine is not shutdown gracefully, then the Delivery Controller sends a force shutdown of the VDA and machine does not power on.