In this tutorial we have explained How to Assign a Static IP Address to a Microsoft Azure Virtual Machine, also we have explained how you can disable auto shutdown for virtual machine.
If you have decided to use azure virtual machine to host your application so it is important to do some settings to your vm before you proceed.
1. You need to set the IP address of you VM to static else IP address for your virtual machine will be re-created each time (By default it is set to Dynamic)
2. You should disable Auto Shutdown for your VM.
Both these points have been explained in above video.