How to migrate website between IIS servers using Web Deploy (msdeploy)

It’s inevitable to migrate your websites from one server to another due to operating system upgrades. I have recently worked on migrating a website from Windows Server 2008 R2 to Windows Server 2016. You will find different ways of performing this migration by using Web Deploy.

Web Deploy is the shorter version for Web Deployment Tool. You can download this tool by using Web Platform Installer (More Information). We leverage this tool by calling msdeploy in the Command Prompt.