As in the code example I'm using "Recipe = Recipe.ChromePdf" and no staticPDF recipe. And locally on my windows machine the rendering with the azure function in .net is working fine. If I switch there to "staticPDF" then I get the same error as on the linux machine on the azure cloud. So it seams there the chromepdf is somehow ignored or a fallback goes to staticPDF?
Another question: I tried running the node.js example on a static azure plan (OS: linux, Plan: (B1: 1)) and I get the following error:
Error: Failed to launch chrome!
[0330/091143.853361:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/home/site/wwwroot/node_modules/puppeteer/lib/Launcher.js:348:14)
at Interface.<anonymous> (/home/site/wwwroot/node_modules/puppeteer/lib/Launcher.js:337:50)
at Interface.emit (events.js:326:22)
at Interface.close (readline.js:416:8)
at Socket.onend (readline.js:194:10)
at Socket.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
On a consumption Azure plan, as it is mentioned in the example, this is working. Has someone any idea?