0

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

  • Possible duplicate of [How to get client IP address in Azure Functions C#?](https://stackoverflow.com/questions/37582553/how-to-get-client-ip-address-in-azure-functions-c) – William Xifaras Nov 13 '19 at 00:20

1 Answers1

2

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

George Chen
  • 13,703
  • 2
  • 11
  • 26