Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Adding to AlanKinane above response, please check this Azure Automation Start/Stop VMs document for your ask on Stopping and Starting of VM's automatically.
There is also another alternative for your ask which is currently in preview. Please check this document.
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.