Azure Virtual Machines have a feature to configure automatic shutdown of the machine. This can be useful to save Azure resources. To enable this, go to your Azure Virtual Machine in the Azure Portal.
You will see Operations->Auto Shutdown. Here you can enable or disable this feature, as well as set a time and notification for the shutdown: