This article describes how to reconfigure an already configured XenApp and XenDesktop Site to work on an AlwaysOn setup. It also provides generic instructions for changing the database connection strings used by XenApp and XenDesktop 7.x..
Set-AnalyticsDBConnection -DBConnection $null -force # 7.6 and newer Set-AppLibDBConnection -DBConnection $null -force # 7.8 and newer Set-OrchDBConnection -DBConnection $null -force # 7.11 and newer Set-TrustDBConnection -DBConnection $null -force # 7.11 and newer Set-HypDBConnection -DBConnection $null -force Set-ProvDBConnection -DBConnection $null -force Set-BrokerDBConnection -DBConnection $null -force Set-EnvTestDBConnection -DBConnection $null -force Set-SfDBConnection -DBConnection $null -force Set-MonitorDBConnection -DataStore Monitor -DBConnection $null -force Set-MonitorDBConnection -DBConnection $null -force Set-LogDBConnection -DataStore Logging -DBConnection $null -force Set-LogDBConnection -DBConnection $null -force Set-ConfigDBConnection -DBConnection $null -force Set-AcctDBConnection -DBConnection $null -force Set-AdminDBConnection -DBConnection $null -force
## Replace <dbserver> with the New SQL server, and instance if present ## Replace <dbname> with the name of your restored Database ## Note: AdminDBConnection should be first $ServerName="<SQL AlwayaOn Listener Name>" $SiteDBName = "<DbName(case sensitive)>" $LogDBName = "<LoggingDbName>" $MonitorDBName = "<MonitorDbName>" $cs="Server=$ServerName;Initial Catalog=$SiteDBName;Integrated Security=True;MultiSubnetFailover=True" $csLogging= "Server=$ServerName;Initial Catalog=$LogDBName;Integrated Security=True;MultiSubnetFailover=True" $csMonitoring = "Server=$ServerName;Initial Catalog=$MonitorDBName;Integrated Security=True;MultiSubnetFailover=True" Set-AdminDBConnection -DBConnection $cs Set-ConfigDBConnection -DBConnection $cs Set-AcctDBConnection -DBConnection $cs Set-AnalyticsDBConnection -DBConnection $cs # 7.6 and newer Set-HypDBConnection -DBConnection $cs Set-ProvDBConnection -DBConnection $cs Set-AppLibDBConnection -DBConnection $cs # 7.8 and newer Set-OrchDBConnection -DBConnection $cs # 7.11 and newer Set-TrustDBConnection -DBConnection $cs # 7.11 and newer Set-BrokerDBConnection -DBConnection $cs Set-EnvTestDBConnection -DBConnection $cs Set-SfDBConnection -DBConnection $cs Set-LogDBConnection -DBConnection $cs Set-LogDBConnection -DataStore Logging -DBConnection $csLogging Set-MonitorDBConnection -DBConnection $cs Set-MonitorDBConnection -DataStore Monitor -DBConnection $csMonitoring
http://blogs.citrix.com/2014/10/29/updating-database-connection-strings-in-xendesktop-7-x/
https://msdn.microsoft.com/en-us/hh510230.aspx
http://blogs.citrix.com/2014/12/04/database-sizing-guidance-for-xendesktop-7-6/
http://blogs.citrix.com/2014/11/20/database-sizing-tool-for-xendesktop-7/
Updating Database Connection Strings in XenDesktop 7.x
Database sizing guidance for XenDesktop 7.6
Database Sizing Tool for XenDesktop 7