Hi Federico,
You can see the list of possible Outbound IP addresses for your function in the portal by navigating to your Function App, Networking blade, and then under Outbound addresses click ...Show more
This will open a panel on the right with a list of possible outbound IP addresses that may be used. In rare cases an IP address that is not included on this list may be used. If you need better control over the Outbound IP that is used you can enable VNet integration with a NAT Gateway. This would require you to switch to a different plan since VNet integration isn't supported by Consumption.
If you want to detect the Outbound IP address that is likely being used at a particular moment from your function code, you may make a call to a public service that will reply with your public IP. For example, in your code you could make a request to https://api.ipify.org?format=json
and it will return the public IP address being used for that call.
Please click Accept Answer if the above was useful. If something is unclear please add a comment below.
Thanks.
-TP