In maintaining a .NET legacy application, your aim is to ensure consistent results during the CI/CD pipeline while minimizing deployment costs and mitigating external factors and dependencies between hosting environments, as containers are not yet sanctioned in your organization. What should be your approach?