When you disable public network access on the storage account and switch to using a private endpoint, the Azure Function App should still be able to access the storage account as long as it is properly configured to use the private endpoint. Here are some key points to consider:
- Private Endpoint Configuration: Ensure that the private endpoint for the storage account is correctly created and associated with the virtual network that your Function App is integrated with. The Function App must be able to resolve the private endpoint's DNS name.
- Network Integration: Verify that your Function App is integrated with the same virtual network where the private endpoint is located. If the Function App is not in the same virtual network or does not have access to it, it will not be able to connect to the storage account.
- DNS Configuration: If you are using a custom DNS server, make sure it is configured to resolve the private endpoint correctly. This is crucial for the Function App to communicate with the storage account.
- Firewall and Network Rules: Check the firewall settings and network rules on the storage account to ensure that they allow traffic from the virtual network where the Function App is deployed.
If all these configurations are correct and the Function App still does not work, you may want to review the logs for any specific error messages that could provide further insights into the connectivity issues.
References:
and click on Yes for was this answer helpful. And, if you have any further query do let us know.