Stop Googling. The answer is staring you right in the face—you just have to read it.
Take advantage of Azure Functions to run small pieces of code that can be triggered by events in the Azure cloud. Azure Functions is the serverless compute offering in the Microsoft Azure cloud.