Virtual Machine is like a computer created within a computer.It has guest operating system. Virtual Machine uses hardware level virtualization.Hypervisor controllers enables you to create and run multiple VMs.
Containers virtualizes entire operating system and multiple applications runs in an isolated and secure way on a single operating system.It doesn’t have any guest operating system.The application and all its dependencies is packaged into a “container” and then a standard runtime environment is used to execute the app.
Serverless computing also called as FaaS (Function as a service). Azure Function and AWS Lambda are the most popular serverless platforms.Application is broken into separate functions that run when triggered by some action.You only pay for the processing time used by each function as it executes.