Is it possible to conditionally switch between the type of “Identity” for the “Deploy to IIS” process depending on the Deployment Target?
For context when we’re deploying our IIS website to our QA environment hosted in our local network we would prefer to use the “Application Pool Identity”, whereas in our other environments we have a custom application pool user that we use.
We could just use the “Custom user (you specify the username/password)” and feed in the credentials from variables, but that would mean that we would need to setup an additional user based on the “Application Pool Identity” to use for QA websites.
Is it possible to avoid this and conditionally just use the built-in user just for one environment?