@maria_praded You can create the text file and save the body and attach the file in your comment so I can review. In case if you are working with consumption plan then the below applies as mentioned in my answer here if in case if the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and WEBSITE_CONTENTSHARE is not define in your function app application setting.
In consumption sku there is no persistent storage by default. So contents will be lost when the workers recycle. If you need to create a function for the consumption plan then you need to define (WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, WEBSITE_CONTENTSHARE app settings). I have tested creating a python function once I have defined these two settings in my application settings of the function app.
I have created a new function app in consumption SKU and used the same request body as I have mentioned in my previous post and the function gets sucessfully created.
Looks like the runtime environment might have the issue which might be causing this behaviour where you might have deleted some of the configuration. I will suggest you to create a new consumption plan function app and test it to confirm if you observe the same behaviour.
. The body of the request is exactly the same as the template, the url is correct as I tested it with GET request and it worked well.
,
,