Recently investigating the use of Azure Functions.
Assume you configure a PHP Azure Function with one input, triggered by Azure Message Queue, and an output to another Azure Message Queue.
While trigger works, message is received and code executes flawlessly, i've been unable to identify a means of passing an output which is subsequently loaded into the Output message queue.
I've tried a series of;
return $variable;
$variable = $OutputVariableName;
putenv("OutputVariableName=$OutputVariableName");
$return = $OutputVariableName; //assuming you've configured this in output settings
Nothing seems to result in the output being dumped into the configured Azure Message Queue.
Thoughts? Cognizant that Azure Functions with PHP is experimental.
Cheers,
T