DevopsLearn Thanks for posting your question in Microsoft Q&A. Based on your description, you have Func App integrated with VNET and private endpoints and deployed via DevOps pipeline is successful. However, if you enable VNET restriction on the associated storage account, then facing 500
error.
Unfortunately, you cannot secure an existing storage account this way at this time. Please follow Existing function app doc and create a new file share in a new storage account (swap-out the existing storage account) and configure a private endpoint in the new storage account as described in the doc. I see similar feedback https://feedback.azure.com/d365community/idea/d13e5c40-5b3f-ed11-a81b-000d3a7b5d8c#comments from other customers and request you upvote this feature. This will help our product team prioritize the features and I will also submit the feedback internally.
Let me know if you face any issues or have any other questions.
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.