Setting up SFTP with Windows VM & Azure File share

Abhishek Kumar 20 Reputation points
2023-05-23T19:46:39.1733333+00:00

I have a requirement from the project to setup the SFTP in Windows VM and mount the Azure file share and then update the SFTP default path to point to the Azure file share path.

 

As of now below are the things I have completed so far-

  1. Installation of SFTP using OpenSSH and also tried Bitvise in the windows VM.
  2. Mounting the file share to the Windows VM

Issue-

When changing the directory in the SFTP configuration file to point to the Azure file share its not working. 

Workaround which I found so far from some articles(I didn't test it yet)-

Integrate AADDS and enable it in the storage account & Enable AD login in the Windows VM - This can't be done because of so many different factors in it.

Use Enable SFTP at the Azure storage container and use it - This I cannot do as it requires some code changes from customer end which can't be done at the moment.

Any leads on this would be great.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 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
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2023-05-24T15:34:24.9233333+00:00

    @Abhishek Kumar Gupta Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    SFTP feature only supports blob storage, so you won’t be able to mount an Azure file share. 
    Azure Files doesn’t support SFTP, this is for Blob storage only. You can still use SFTP to access your file share, however, you would need to set up the SFTP server yourself. Generally speaking, customers want to use File Sync to cache their data on-premises like they do with StorSimple today,

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


1 additional answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-05-24T11:12:28.8166667+00:00

    Hello there,

    SFTP is a very widely used protocol which many organizations use today for transferring files within their organization or across organizations. Creating a VM based SFTP is costly and high-maintenance. ACI service is very inexpensive and requires very little maintenance, while data is stored in Azure Files which is a fully managed SMB service in cloud.

    This template demonstrates an creating a SFTP server using Azure Container Instances (ACI). The template generates two resources:

    storage account is the storage account used for persisting data, and contains the Azure Files share

    sftp-group is a container group with a mounted Azure File Share. The Azure File Share will provide persistent storage after the container is terminated.

    Enable SFTP on Azure File Share using ARM Template and upload files using WinScp

    https://techcommunity.microsoft.com/t5/azure-paas-blog/enable-sftp-on-azure-file-share-using-arm-template-and-upload/ba-p/3662578

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--


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.