Hello Aditya , welcome to MS Q&A
The function might execute from different IPs than the one you’ve whitelisted as These IPs are not static and dynamic and can change
Your storage account’s firewall might be blocking Azure Functions' traffic.
Fix:
Each function app has a set of available outbound IP addresses. Any outbound connection from a function, such as to a back-end database, uses one of the available outbound IP addresses as the origin IP address. You can't know beforehand which IP address a given connection will use. For this reason, your back-end service must open its firewall to all of the function app's outbound IP addresses.
When a function app that runs on the Consumption plan or the Flex consumption is scaled, a new range of outbound IP addresses may be assigned. When running on either of these plans, you can't rely on the reported outbound IP addresses to create a definitive allowlist. To be able to include all potential outbound addresses used during dynamic scaling, you'll need to add the entire data center to your allowlist.
If you want to whitelist, get all outbound IPs from az functionapp show --query outboundIpAddresses
Pls check this doc -->IP addresses in Azure Functions
Please let me know if any ques
Kindly accept answer if it helps
Thanks
Deepanshu