Function app unable to access storage account after adding firewall protection

Aditi Mokashi 20 Reputation points
2024-09-25T05:49:06.98+00:00

I want to add firewall to my storage account. The function app refers to the protected storage account which has enabled for restricted ip address access. I have added function app's outbound and inbound ip address in storage still function app is unable to access the storage account. The code and env files of my function app are stored in storage account during deploying the function app however the function app service is unable to access them later on leading to errors.

Note - I do not want to use VNet as it will change my project's entire infra. My use case is to protect the storage account only using firewall and restrict it to be accessed by specified IP addresses.

Any help regarding firewalls and storage account access properties is appreciated.

Thanks in advance!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,029 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,183 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,808 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,380 Reputation points Microsoft Employee
    2024-09-25T09:52:28.29+00:00

    Hello @Aditi Mokashi

    One thing you can check is whether the storage account firewall is configured to allow traffic from the region where your function app is located. If your function app is located in a different region than your storage account, you need to add the outbound IP addresses of your function app to the storage account firewall rules for the region where your function app is located.

    Another thing you can check is whether the storage account connection string in your function app is correct. You can find the storage account connection string in the AzureWebJobsStorage application setting.

    Make sure that the connection string is updated with the latest storage account key. If you have already checked these things and are still unable to access the storage account, you can try enabling diagnostic logging for your function app.

    This will help you identify any errors that might be occurring when your function app tries to access the storage account.

    To enable diagnostic logging, you can follow the steps mentioned in the following document: Enable diagnostics logging.


    I hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.