You can write python code in runbook and schedule them in Azure automation service. This way, you can automate some processes such as turn off the VM during weekend and turn on Monday morning.
Be aware that, for automation work, PowerShell is more preferred language. But python is good too to learn.
See below document and also refer index page on the left to see various scenarios for automation
https://learn.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual-python2
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav