A quick note here for anyone else who comes across the rather unhelpful message of “Unable to determine the primary function script.” when working with Azure Functions. I encountered this when I took a working Function and added it to Continuous Integration. In order to fix this you have to update the associated function.json file and add the following line above “bindings”:
“source”: “run.csx”
N.B. if you are not using C# you need to change the run.csx entry to match your file which contains the actual script, e.g., run.ps1 for PowerShell.
Onwards and upwards!
Ian
No Comments