How to access on-prem images folder from Azure App service

SidK 21 Reputation points
2022-07-11T09:26:04.743+00:00

My web application hosted on app service needs to show some images from on-prem folder. Do I really need SMB protocol here ? Suggest legit & secure way to achieve this.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,321 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 23,786 Reputation points Microsoft Employee
    2022-07-11T11:35:40.957+00:00

    @KumawatSumeet-4295 Thanks for reaching out.

    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.

    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.