This is a sample implementation and needs some adjustments by you before using it.
- Add your Service Principle to the Function App configuration
- Add configuration for your desired Cold Pool of VMs
- Modify the Business logic according to your requierments