Integration and Deployment

Serverless Deployment

MS Azure Function

Use the included Azure sample project and deployment script to publish a tested decision model as a callable cloud function.

Sample project

Start with VacationDaysAzure.

The standard VacationDaysAzure project demonstrates deployment of the introductory Vacation Days model. It requires a JDK, Maven, the .NET Core SDK, and Azure Functions Core Tools.

OpenRules decision model deployed to Microsoft Azure
OpenRules to Microsoft AzureOpen full size ↗

Configuration

Keep model and Azure settings explicit.

The decision-model settings remain in VacationDaysAzure/project.properties. Azure-specific deployment properties are defined in pom.xml, giving your team full control over its target Azure environment.

After adapting pom.xml, run deployFunction.bat or deployFunction on macOS and Linux.

VacationDaysAzure project properties
VacationDaysAzure project configurationOpen full size ↗

Invoke

Copy the generated function URL and test it.

A successful deployment prints the function URL in the console. Copy that URL into POSTMAN and send one of the JSON tests automatically generated in the project’s jsons folder.

Azure deployment console with the generated function URL
Azure Function deployment outputOpen full size ↗

Build and deploy

Try these deployment projects yourself.

The free evaluation includes ready-to-run decision models that you can build, test, and adapt.