I need smth like this but with access to the file system. In a cron job I generate files which eventually I need to push to github. Do you think Azure Funcions are good for such task?
Then no, Azure Functions probably won't be good for that, because it sounds like you need a git repository on your VM which does require filesystem access. Isn't the cheapest Digital Ocean offer $4/month, I don't think you'll find anything much cheaper than that for what you're doing.