I have a Azure Logic App with a http trigger and would like to call this logic app with a Azure Function. I have tried to make a post call using the Requests Library. The code looks sth like this:
import requests
url='https://prod-56.westeurope.logic.azure.com:...'
requests.post(url)
When I try this code with VS Code it works. But somehow it doesn't work in Azure Functions. I have already changed CORS in the Azure function to allow all but it still didn't work. Any idea how i can call the logic app with a azure function in python?






requirements.txt filewill automatically get generated if we implement in Vs code. However, you could use kudu console while working with Azure functions by setting up a venv and install the Python modules. I suggest you to execute the code directly in Visual Studio Code and deploy to azure using the Publish command.