Per Juborg
Per Juborg

Reputation: 3

HttpTriggered Azure Function calling IP

I'm trying to figure out if it is possible to get the IP address from where the Azure Function was triggered, when called by a webhook/httptrigger.

I've only looked at PowerShell, since that's what I know, but so far I've found nothing when debugging.

/Per

Upvotes: 0

Views: 1198

Answers (1)

George Chen
George Chen

Reputation: 14334

For v2 Function we use HttpRequest, so when we use HTTP trigger function, we could use

req.HttpContext.Connection.RemoteIpAddress

Then you will be able to see the client remote ip.

enter image description here

Upvotes: 2

Related Questions