I am trying to setup Sitecore CD to work with Blue/Green deployments. As part of this configuration, I am tying to get our database to stay sticky to the staging and production deployment slots
This is my setup:
- Cloned an existing web database in the specific environment
- Created the CD app and a slot in the app service using an ARM template in the same environment. This template also creates a
connectionString
setting in the slot for a database that was cloned in step 1. ThisconnectionString
is sticky so that the database is always the same for a particular slot, i.e. web app namedstaging-web
is always point to staging-db. This prevents theconnectionStrings
being swapped during the slot swap
The problem I have is that the values in the app service's connectionstring
, do not appear to be read, it seems that the app service is only reading the values that are defined in the connectionStrings.config
How can I fix this issue so that the app only read from the app service's connectionstring
setting?