Hi Royer, Alexis,
Thank you for reaching out to Microsoft Q & A forum.
It looks like the issue may be due to a missing or incorrect function key or function URL. Please check the following:
1.Function Key: Make sure your function key is included in the x-functions-key header. You can find it in the Azure Portal under:
Function App > Your Function > Function Keys.
2.Function URL: Ensure you're using the correct function URL by navigating to:
Azure Portal > Function App > Your Function > Get Function URL.
Once you've verified these details, try running the following command with the correct values:
curl --header "Content-Type: application/json" \
--header "x-functions-key: YOUR_ACTUAL_FUNCTION_KEY" \
--request POST \
--data '{"name": "Azure Function"}' \
YOUR_ACTUAL_FUNCTION_URL
Additionally, you can check the Logs under Code + Test in the Azure Portal to see if the request is being received.
Please feel free to contact us if you have any additional questions.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.