I have been working through this and found the solution. But I wanted to post the write-up here so others can find it in the future.
The main issue on why this errors comes the xConnect scripts in the sitecore-XP0.json
file. There are 4 InvokeSqlcmd
configured in this json file that look like this.
"Description": "Create Collection Shard Database Server Login.",
"Type": "InvokeSqlcmd",
"Params": {
"ServerInstance": "[parameter('SqlServer')]",
"Credential": "[variable('Sql.Credential')]",
"InputFile": "[variable('Sharding.SqlCmd.Path.CreateShardApplicationDatabaseServerLogin')]",
"Variable": [
"[concat('UserName=',variable('SqlCollection.User'))]",
"[concat('Password=',variable('SqlCollection.Password'))]"
]
},
"Skip": "[parameter('SkipDatabaseInstallation')]"
Normally these work fine. Except now with Windows 11 these call default to using an encrypted connection to SQL. This means it is using a self-signed cert that is not going to be trusted. So is there a way we can make these calls not need the cert? There sure is. We just need to use "TrustServerCertificate": true
. So we need to update each of the 4 calls to look like this (this is the update to one of them they all don't need to look like this they all just need to have "TrustServerCertificate": true,
added to them.
"Description": "Create Collection Shard Database Server Login.",
"Type": "InvokeSqlcmd",
"Params": {
"ServerInstance": "[parameter('SqlServer')]",
"TrustServerCertificate": true,
"Credential": "[variable('Sql.Credential')]",
"InputFile": "[variable('Sharding.SqlCmd.Path.CreateShardApplicationDatabaseServerLogin')]",
"Variable": [
"[concat('UserName=',variable('SqlCollection.User'))]",
"[concat('Password=',variable('SqlCollection.Password'))]"
]
},
"Skip": "[parameter('SkipDatabaseInstallation')]"
Notice the minor but very important change here of the additional params item. Once you add this your installation will work.
There are a couple more issues you may run into and I will link their solutions here as well to make it easier.
- Marketing service will not start
- ERR_SSL_KEY_USAGE_INCOMPATIBLE