@King Java - Thanks for the question and using MS Q&A platform.
What do you mean by Azure Virtual Machine (On Prem)? Are you referring to on-premise windows server?
FYI, Azure Virtual Machines are typically hosted in the cloud.
If you are looking for a solution to connect to folder in Azure Virtual Machine which is hosted on Azure, you can Create an SMB Azure file share and connect it to a Windows VM using the Azure portal.
Once the SMB mounted you can move the files to the windows folders to Azure Files share with ease.
Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol or Network File System (NFS) protocol.
For more details, refer to Tutorial: Create an SMB Azure file share and connect it to a Windows VM using the Azure portal and Mount SMB Azure file share on Windows.
If you are looking for a solution to connect to folder in window servers which is on-premise you can use Azure Data factory to connect via file system connector using SHIR.
Azure Data Factory file system connector supported for the following capabilities:
- Copying files from/to network file share. To use a Linux file share, install Samba on your Linux server.
- Copying files using Windows authentication.
- Copying files as-is or parsing/generating files with the supported file formats and compression codecs.
For more details, refer to Copy data to or from a file system by using Azure Data Factory or Azure Synapse Analytics.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.