Unable to set MaxFailedRegistrationsAllowed and MaxShutdownDelayMin in Citrix Cloud
book
Article ID: CTX476630
calendar_today
Updated On:
Description
There is a requirement to prevent machine going into maintenance mode and extending the reboot time due to slow shutdown of machines. In on-prem deployments, this was possible by setting registry key values as mentioned in our on-prem support articles below.
MaxFailedRegistrationsAllowed <- Prevent machine going into maint mode (https://support.citrix.com/article/CTX137376)
MaxShutdownDelayMin <- Extending reboot time due to slow shutdown of machines <- https://support.citrix.com/article/CTX237058
However, as DDC's are hosted on the cloud, customers have no access to make these changes.
Resolution
In order to set these, values, you will need to install the Citrix Posh SDK on a machine (that has no major Citrix components such as cloud connecter, etc.) .
Once installed, open Powerhsell and run the below commands:
Add-PSSnapin Citrix* - This will load Citrix Modules.
Get-XDAuthentication - This will prompt a login box which you will authenticate to your cloud portal.
Once authenticated, please run the below command to set "MaxFailedRegistrationsAllowed":
Set-BrokerServiceConfigurationData HostingManagement.MaxFailedRegistrationsAllowed -SettingValue "NumberValue"
To set MaxShutdownDelayMin, you will need to run the below command
Set-BrokerServiceConfigurationData RebootSchedule.MaxShutdownDelayMin -SettingValue "NumberValue"
The default values for these settings are:
HostingManagement.MaxRegistrationDelayMin
: 20 minutes
RebootSchedule.MaxShutdownDelayMin
: 10 minutes
So if you want to change these value, use the above commands and just replace "NumberValue" with the number you want.
See below fro example:
Set-BrokerServiceConfigurationData HostingManagement.MaxFailedRegistrationsAllowed -SettingValue 20
Problem Cause
DDC's are hosted on the cloud so users will not be able to access them so you will need to change the values via Posh SDK.
Issue/Introduction
How to set MaxShutdownDelayMi and MaxFailedRegistrationsAllowed for cloud deployments
Was this article helpful?
thumb_up
Yes
thumb_down
No