Questions tagged [azure-http-trigger]
121 questions
0
votes
2 answers
How to restrict/stop public (internet) access to Azure function?
I have several Azure Functions (Premium plan) which do some stuff and load the results to the storage blob. The connection to the storage account is restricted by a v-net so no public access to the storage account, however, I check and found that my…

mas
- 339
- 7
- 22
0
votes
1 answer
Getting "Cannot access a closed file" when trying to access form from httprequest
I'm trying to send an http post req to an azure httptrigger containing an image in form data, but when I attempt to access the req.form from within the httptrigger, it says "System.Private.CoreLib: Exception while executing function: HttpTrigger.…

smurf derf
- 3
- 2
0
votes
2 answers
Azure functions - Map empty string as route for a function
Is there a way to map empty string as route to an Azure Function. Like lets say when I hit the https://example.org/api (empty string), the function will be hit. I have tried like below, but it did not work.
[FunctionName("Default")]
public static…

sprash95
- 137
- 9
0
votes
0 answers
Call Azure Function Once First Function of Saving to DB Complete
I have some code which takes some incoming JSON, deserializes it and then simple stores it in a database
+----+---------------+
| Id | Json |
+----+---------------+
| 1 | { json here } |
+----+---------------+
| 2 | {more json } …

ScuffedCoder
- 376
- 1
- 5
- 21
0
votes
1 answer
How to edit httptrigger function.json file for the project uploaded by VSCode
I use vscode extension
Azure Functions to create htmltrigger project on my local.
and I want to edit htmltrigger authLevel to anonymous, but I searched my local vscode folder for function.json and not found it
and azure portal show Your app is…

Wei Lin
- 3,591
- 2
- 20
- 52
0
votes
1 answer
Azure Function log every methods called and record into Azure Log Analytics workspace
Currently, I have a project which is using Azure Function with .net core 3.1 and I would like to know how to trace every method called
for example:
[FunctionName("Count")]
public static async Task Run(
…

Jay Fang
- 1
- 1
0
votes
1 answer
In Azure functions (Http triggers, Python 3), how do I control the maximum concurrent requests the server can handle?
Using Python 3.8 for an Azure functions app in which all the functions are HTTP triggers. We have HTTP 2 enabled ...
Below is our host.json file
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
…

Dave
- 15,639
- 133
- 442
- 830
0
votes
0 answers
HTTP trigger azure function having problems when not running locally
I have a basic HTTP trigger azure function in Visual Studio (C#):
[FunctionName("HttpTriggerCSharp")]
public static async Task Run(
[HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]
HttpRequest req, ILogger…

NanoTech
- 135
- 1
- 6
0
votes
1 answer
How to use strongly typed http methods in an Azure function signature
I have a bunch of Azure functions that use an http trigger. I've been hard-coding http methods like in the below case:
[FunctionName("HttpTriggerCSharp")]
public static async Task Run(
[HttpTrigger(AuthorizationLevel.Function,…

user246392
- 2,661
- 11
- 54
- 96
0
votes
1 answer
Unable to add ML Model in Azure Function Python3
I am trying to create an azure function which will return data from my ML Model (final_model.sav).
By doing so ML Model will be available on the internet.
My Azure Function(init.py) program:
import azure.functions as func
import pickle
def…

EvilReboot
- 152
- 10
0
votes
1 answer
Anonymously Hosted DynamicMethods Assembly: Cannot implicitly convert type 'string' to 'int'
I am working on an AZURE function.The purpose of the function is to
calculate the status of a module: fail, pass condoned, pass or pass with distinction. when I run the code I get this error.I get an error at mark because it is an integer.
Executed…

Jacob
- 37
- 5
0
votes
1 answer
How to Schedule days and hours for every two minutes trigger in Azure Logic app?
Every two mins it should get a trigger for 3 hours.
Run the logic app every day at 9 am?
The above logic app triggers and runs for every 2 min.
how to set timing(3hrs) and for each day(every day) at 9 am?
eg: 10 Sep 2020 at 9 am to 12 should…

San
- 87
- 1
- 14
-1
votes
1 answer
How to Invoke Admin Level Authorized Azure HTTP Trigger Function
I've Created HttpTrigger Azure Java Functions with ADMIN LEVEL Authorization:
Reference Document Link: https://vincentlauzon.com/2017/12/04/azure-functions-http-authorization-levels/
For Invoking Admin Authorized Azure Function, we need Host Keys…

Balu
- 9
- 5
-1
votes
2 answers
Installing azure-data-tables
I’m hoping to use azure-data-tables in my Python code. I'm working in VScode on an Azure HTTP trigger. I’ve run pip3 install azure-data-tables in the terminal on my Mac. However, when I import azure-data-tables in my file on VS code, it’s underlined…

Soph
- 1
-1
votes
2 answers
How to manually call httpTrigger Azure Function within another
I have a JavaScript httpTrigger Function on Azure that I want to call in another httpTrigger Function. Both are in the same resource group. I know about Durable Functions and Queue Storage but (according to my limited knowledge) neither is perfect…

michal
- 67
- 7