Pedro Thanks for posting your question in Microsoft Q&A. It is not possible to find IP range of the function app creation beforehand and add it to the storage account restrictions and then create Function app. Based on your description, I assume you are trying to create a new Function App with an existing storage account that has network restrictions i.e., allow only connections from VNET.
Currently, we have https://learn.microsoft.com/en-us/azure/azure-functions/configure-networking-how-to?tabs=portal#restrict-your-storage-account-to-a-virtual-network doc with instructions that include ARM/Bicep templates for creating a new storage account behind VNET and integrate with Function app. However, if you have a storage account/VNET already exists, then change ARM template to just create a new file share in the storage account, do VNET integration, then set WEBSITE_CONTENTSHARE
, WEBSITE_CONTENTOVERVNET
etc. to point to the file share.
Note: the consumption plan doesn't plan VNET, and you can use other tiers. I hope this helps with your question and let me know if you have any other questions or face any issues.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.