When packaging for Microsoft Azure Functions deployment, Corticon.js generates the files:
  • decisionServiceBundle.js: Your rules, obfuscated
  • azure.sample.js: Sample Azure Functions wrapper
When invoked the Azure function is passed a JSON payload. This is most likely triggered by a REST call to invoke the function.

The wrapper, azure.sample.js, implements the Azure Functions API for responding to HTTP triggers. The wrapper is a complete, ready-to-run, Azure function, yet you can also modify it to meet the specific needs of your application as it is heavily annotated. The Azure functions API has different signatures for different triggers. You can modify the wrapper to meet the needs of different triggers.

The following video is a Corticon.js Azure Functions deployment walkthrough:

See the Azure Functions documentation for details on deploying serverless functions.