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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,154 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Greg Leonardo 85 Reputation points MVP

    Some questions, do you have a site to site VPN or express route? Does this app need to expose this share to the public or is only serving up files? Where and how is the link stored, meaning is it a link to a file location that is use by a responsive app?

  2. ajkuma 23,641 Reputation points Microsoft Employee

    @Vinodkumar Vallur ,

    Based on your scenario description, the following protocols and ports are required to access the files: Microsoft file sharing SMB: UDP ports from 135 through 139 and TCP ports from 135 through 139. Direct-hosted SMB traffic without a network basic input/output system (NetBIOS): port 445 (TCP and UDP).

    The App Service sandbox explicitly does not allow access to the ports necessary for SMB protocol (137/138/139/445). There are restrictions in terms of network access from an Azure Web App.

    Alternately, you leveraging Azure Storage Files as a network share in a Windows container in App Service.

    This guide shows how to mount Azure Storage Files as a network share in a Windows container in App Service: Mount Azure Storage as a local share in App Service

    You may try using a Windows Container on Azure App Service. In this case we don’t use our proprietary sandbox, instead we use the container as the sandbox. You will be able to join a VNet and access files from the VNet using SMB. The VNET would then needs to be connected to on prem via ER/VPN to reach on prem resources.

    Checkout these docs for more info:

    0 comments No comments