I want to create an Azure Functions with the Java SDK but I have some problem defining the trigger, my code to create the functions app is:
FunctionApp function = azure.appServices().functionApps().manager()
.functionApps()
.define(appName)
.withRegion(region)
.withExistingResourceGroup(resourceGroup)
.withNewLinuxConsumptionPlan()
.withBuiltInImage(FunctionRuntimeStack.JAVA_11)
.withLatestRuntimeVersion()
.create();
And I want to define an EventHub Trigger but I don't know how I can do that, I see that my function object have the following method:
function.triggerFunction(functionName, payload);
What is the payload format? There is another way to do this?
Regards Victor