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
2023-05-11T17:21:25.3766667+00:00

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
    2023-05-18T08:38:24.71+00:00

    @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:

    (https://learn.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?pivots=container-linux&tabs=portal,

    https://azure.github.io/AppService/2018/09/24/Announcing-Bring-your-own-Storage-to-App-Service.html)

    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: https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#restricted-outgoing-ports

    Alternatively, you can use [Azure File Share] (https://learn.microsoft.com/en-gb/rest/api/storageservices/file-service-rest-api) 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 : https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization

    0 comments No comments