Azure Functions and Serverless Computing

Spinning up and using Azure VMs and containers for your use will incur a usage fee on a daily basis. But, if you strictly want to restrict your billing based on actual code execution, you could use Azure functions. It is most useful in scenarios where your code/application is executed by triggering an event and the code execution ends after its execution. Doing so, you don’t care about the VM, container, or basically its ‘serverless’ at least superficially (even though there is a cloud server that runs your app).