How to access file share from Azure function app

Nuwan Wickramanayaka 81 Reputation points
2022-11-01T04:04:57.35+00:00

Hi all

I am trying to access Azure file share from my function app. like accessing the network share

\<fileshare_name>.file.core.windows.net\emailqueuefileshare\development\aaa.png

It gives error "Access to the path is denied " error. Storage account is created in same resources group.

Further I am required to access file shares from other accounts as well.

Kindly let me know the approach that I should follow to achieve this

Thanks
Nuwan

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sreeju Nair 12,666 Reputation points
    2022-11-01T08:19:26.443+00:00

    To use Azure fileshare from your function, you can configure the Azure Storage Connection sTring.

    Refer: https://learn.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string

    Once you configure the connectionstring for your fileshare, refer the following tutorial that tells you how to access the file share from a .Net application.

    https://learn.microsoft.com/en-us/azure/storage/files/storage-dotnet-how-to-use-files?tabs=dotnet#access-the-file-share-programmatically

    Hope this helps


0 additional answers

Sort by: Most helpful

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.