I've implemented an azure function with a timer tigger to scrape a website.
Since azure function used a different outbound IP adresse on each request. I want to log the IP adresse used to call the https://example.com (see code example below).
import logging
import azure.functions as func
import requests
def main(mytimer: func.TimerRequest) -> None:
if mytimer.past_due:
logging.info('The timer is past due!')
response = requests.get('https://example.com')
logging.info(response.text)

