Questions tagged [azure-http-trigger]
121 questions
1
vote
1 answer
Unable to update an item in CosmosDB using the replace method with JavaScript
I am trying to create a basic REST API using Azure functions and the cosmosDB client for JavaScript. I have been successful with all the actions except the UPDATE. The cosmosDB client uses conainter.item(id,category).replace(newObject) I am unable…

M_66
- 299
- 5
- 19
1
vote
1 answer
Excel file generated through azure function seems corrupted
Iam able to generate an excel using python pandas using:
df = pd.DataFrame(columns =["test"])
writer = pd.ExcelWriter(f'{basepath}/Summary.xlsx', engine='xlsxwriter')
df.to_excel(writer,engine='openpyxl',sheet_name= 'Sample')
…

rahul knair
- 103
- 11
1
vote
0 answers
I want to resolve all rows from request.on('row) in node.js - but its only possible with one row
I am working in node.js using tedious package and have connected to my database, (working with HTTP triggers).
The other Get requests i have made so far works - when its only one row im asking for.
But now im trying to retrieve all users in my…

alle19af
- 11
- 3
1
vote
1 answer
Azure Functions v3 Could not load file or assembly 'Microsoft.Extensions.Primitives, Version=5.0.0.0
I'm having the above error after running an azure function called "Test" that redirects to an external URL of a service we want to use.
[FunctionName("Test")]
public IActionResult Run([HttpTrigger(AuthorizationLevel.Anonymous, "get",…

GUZZ
- 61
- 5
1
vote
1 answer
How do I store known client-certificates for an HTTP-triggered Azure Function?
I'd like to only allow requests to an HTTP-triggered Azure Function that include a well-known client-certificate.
I do not want requests forwarded to the Azure Function that are not "approved".
I have set Client-certificate mode to Require
Where…

ericOnline
- 1,586
- 1
- 19
- 54
1
vote
1 answer
Python Azure function with http trigger not seeing json body
I am building locally a Blazor server app which calls an azure function written in python. I am developing both on my local machine using visual studio for the Blazor app and VS code for the python function. The Python is 3.8.7
The Blazor app…

Martin
- 45
- 1
- 5
1
vote
3 answers
Azure function nodejs return 200 OK with empty response
I'm using an Azure function to do some work, all is good except that I can not get the response body from the result:
module.exports = async function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');
…

Tarek
- 43
- 1
- 7
1
vote
1 answer
HttpRequest.HttpContext.User (ClaimsPrincipal) object in a Azure HttpTrigger Function does not contain my Identity from Authorization Header
[FunctionName("GetDetails")]
public async Task Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "v1/{Id}/details")] HttpRequest request, int Id)
{
//my code here to get claims from the User context…

Akshay Chhangani
- 13
- 4
1
vote
1 answer
Http Trigger-Python-Log Specific Message Constantly and not URL body or payload
Building on an earlier question. The following code is an httptrigger that listed to a gis layer edits and updates. It logs into the queue the url payload. I do not want the payload loaded but a specific repetitive message so that it is overwritten…

wwnde
- 26,119
- 6
- 18
- 32
1
vote
1 answer
Function Running in local and not when deployed to Azure
I have a http trigger function, when I sent a message to the url, it logs data on the queuestorage as required;
http://localhost:7071/api/xxxx?message=89000
However when I do the same in azure on the function…

wwnde
- 26,119
- 6
- 18
- 32
1
vote
1 answer
How to make sure a queue message has been successfully processed in Azure Functions?
I have a C# Azure Functions (on the App Service plan) app built that uses HTTP Triggers and Queue Triggers. The application works by installing a script on a client's machine that pulls various files from a client database using SQL queries moving…

ddx
- 469
- 2
- 9
- 27
1
vote
0 answers
Getting ActionContext from HttpTrigger Azure Function
If i have an azure function with an httptrigger is there a way to get the ActionContext? There is the IActionContextAccessor interface i can register as a singleton...but nothing in the azure function runtime seems to actually set it for each…

Chris DaMour
- 3,650
- 28
- 37
1
vote
1 answer
Azure function Http trigger Ad authentication Asp.net core 3.1
I have created Rest Api with Azure function HttpTriggers along with swagger-UI (.net core 3.1, function V3) which is part of another Https trigger in the same project (total two triggers in different class files under same function project). Now I…

Champ
- 690
- 1
- 7
- 13
1
vote
1 answer
What is the difference between Event grid trigger and http trigger?
I am having difficulty in understanding the difference in both triggers
What is the difference between EventGridTrigger and HTTP trigger?
I just saw there is an option to filter events in …

akhil
- 1,649
- 3
- 19
- 31
1
vote
2 answers
TypeScript Azure Function Read Body of POST method as JSON
I have TypeScript azure function with the Http trigger. I am using POST method and sending body to the azure function.
But I can not read, request body data as Javascript Object.
My function code
import { AzureFunction, Context, HttpRequest } from…

Janith Widarshana
- 3,213
- 9
- 51
- 73