Web jobs can be created to run python code in Azure. See similar question here
https://stackoverflow.com/questions/45716757/options-for-running-python-scripts-in-azure
Also for reference - Azure for Python Developers
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav