How to Map On-Premise File share path to Azure App Service deployed with Windows OS. Need to use service account for authentication.

Vinodkumar Vallur 20 Reputation points

Hi Team,

I am trying to Map an On-Premise File Share path to my Azure App Service deployed with Windows OS. I have to use the Service Account for Authentication.

Could you please help me with the steps to do this.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,223 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.
2,924 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 45,406 Reputation points Microsoft Employee

    @Vinodkumar Vallur Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Firstly, apologies for the delay in responding here!

    Please refer to the suggestion mentioned below:


    Additional information: Accessing the file folder/fileshare via SMB currently no supported way to do so via an Azure Web App. The sandbox that those Apps run in blocks the required ports for that protocol, see here:

    Alternatively, you can use [Azure File Share] ( and access using REST.

    You can use Azure Logic App to connect to your on-premises File-Share using on-premises data gateway and perform actions/triggers according to your requirements and you need to call the logic app from the App service.

    Azure App Service provides built-in authentication and authorization capabilities (sometimes referred to as "Easy Auth"), so you can sign in users and access data by writing minimal or no code in your web app, RESTful API, and mobile back end, and also Azure Functions. This article describes how App Service helps simplify authentication and authorization for your app. Authentication and authorization in Azure App Service and Azure Functions :

    0 comments No comments