I am trying to deploy the same website code to 2 different websites on my testing environment.
We’ll called it Web1 and Portal1
Web1 has ConnectionString1
Portal1 has ConnectionString2
I have created 1 environment called testing which has 2 machines both pointed to same server, but each machine has a different role (con1, con2)
My deployment steps is a single Nuget Install with WebsiteName and WebsiteHostname variables
Web1 has these variable settings
Portal1 has these variable settings
Both share the same connection string but I also have a variable used in the connection string called
DatabaseName is entered in twice with different values but each has a different role (con1, con2)
Everything should work properly as I’m expecting, when I run the deployment… I get an error…
Pre-deployment validation failed, the following machines in the target environment are duplicates: (Web1, Portal1).
However, I can deploy them separately and it works fine… I’m not too sure how I can accomplish getting both website to deploy, will be a pain having to deploy twice to the same environment