none
How to connect to Azure VM file shares from On-Prem VM

    Question

  • Hi Everyone

    We have created few file shares on Azure VM using SMB. We need to access those file shares from on-premises VM. I'm trying to write a PowerShell workflow which can backup certain file shares from azure vm and utilize those within on-premises VMs. I have already tried option of hybrid runbook worker but it seems that it cannot be used for this purpose. Please advise how we can achieve this.


    Thanks
    Mohit



    • Edited by mohit.goyal Wednesday, October 12, 2016 10:29 AM
    Wednesday, October 12, 2016 10:28 AM

Answers

  • That's correct. Windows 7 is using SMB 2.1 - Windows 8 and newer is capable of using SMB 3.0. This is a requirement when connecting to Azure file shares in cross-premises scenarios (or from another Azure region)

    hth
    Marcin

    • Marked as answer by mohit.goyal Wednesday, October 12, 2016 1:03 PM
    Wednesday, October 12, 2016 12:11 PM
  • As long as there is nothing blocking port 445 between your on-premises VM and the Azure Storage file share, and your on-premises VM is SMB 3.0-capable (which includes all recent Windows OS versions), then you should be able to access the share directly.

    ExpressRoute would provide the same functionality, but obviously there would be infrastructure/cost implications.

    Otherwise, your other options include REST https://msdn.microsoft.com/en-us/library/azure/dn167006.aspx

    hth
    Marcin

    • Marked as answer by mohit.goyal Wednesday, October 12, 2016 1:02 PM
    Wednesday, October 12, 2016 10:34 AM

All replies

  • As long as there is nothing blocking port 445 between your on-premises VM and the Azure Storage file share, and your on-premises VM is SMB 3.0-capable (which includes all recent Windows OS versions), then you should be able to access the share directly.

    ExpressRoute would provide the same functionality, but obviously there would be infrastructure/cost implications.

    Otherwise, your other options include REST https://msdn.microsoft.com/en-us/library/azure/dn167006.aspx

    hth
    Marcin

    • Marked as answer by mohit.goyal Wednesday, October 12, 2016 1:02 PM
    Wednesday, October 12, 2016 10:34 AM
  • Hi Marcin

    It seems that this is the case. Do you know that configuring inbound security rules for ARM VM is necessary? What about public dns name as well?


    Thanks
    Mohit

    Wednesday, October 12, 2016 11:23 AM
  • No worries, I got my answer. One query, I can access it from my windows server 2012 r2 machine but not from windows 7 client. Is it due to difference in smb protocols?

    Thanks
    Mohit

    Wednesday, October 12, 2016 12:03 PM
  • That's correct. Windows 7 is using SMB 2.1 - Windows 8 and newer is capable of using SMB 3.0. This is a requirement when connecting to Azure file shares in cross-premises scenarios (or from another Azure region)

    hth
    Marcin

    • Marked as answer by mohit.goyal Wednesday, October 12, 2016 1:03 PM
    Wednesday, October 12, 2016 12:11 PM
  • Thanks Marcin. 

    Thanks
    Mohit

    Wednesday, October 12, 2016 1:03 PM