The application you write on premise is written to a piece of software purchased, installed and configured on a piece of computer hardware that you privately own. The application you write in the cloud is written to a set of services that are available to you as well as the public to exploit.
Read here to learn about how they are different. We also provide Cloud Service fundamentals code on Code Gallery.