I am following this tutorial that creates an Azure Function trigged by http with output to CosmosDB.
When I create just a simple Azure function it works ok, I trigge by http and the http response its ok.
But if create a new output to a ComosDB using the example code indicated in the tutorial the function returns "THIS AZURE FUNCTIONS APP IS DOWN FOR MAINTENANCE" when trigged.
Please be patience, until last week I was just a c++ programmer hahaha.
My steps:
Creating a CosmosDB account and a database called "testDb".
Creating a Function App:
When trigged using this code its ok.
Creating a CosmosDB output.
I change my code to this:
Now when I trigger by http the response is:
What am I doing wrong?
Grateful.





