简体   繁体   English

将文件从Azure PaaS VM传输到IaaS VM

[英]Transfer files from Azure PaaS VM to IaaS VM

On an Azure PaaS virtual machine I have some rather large files that I would like to transfer to an Azure IaaS virtual machine. 在Azure PaaS虚拟机上,我有一些相当大的文件,我想将其传输到Azure IaaS虚拟机。 I can think of a few ways to do this: FTP, SMB, but I have no idea which method would be the "best". 我可以想到几种方法:FTP,SMB,但我不知道哪种方法是“最好的”。

Has anyone done this before? 有没有人这样做过? Any suggestions to get me started? 有什么建议让我开始?

Thanks! 谢谢!

Have you considered using Azure blob storage? 您是否考虑过使用Azure blob存储? It's as fast as using a local drive if you're in the same data center. 如果您在同一个数据中心,它就像使用本地驱动器一样快。 If you need to transfer these files programmatically, there is a REST-based API or .NET wrappers around it. 如果您需要以编程方式传输这些文件,则会有一个基于REST的API或.NET包装器。

Otherwise, you can just use any one of the free or commercial tools to do so, like this one: http://azurestorageexplorer.codeplex.com/ 否则,您可以使用任何一种免费或商业工具来完成此操作,例如: http//azurestorageexplorer.codeplex.com/

Transferring files to an IaaS VM can be a bit of a pain as there's no elegant way to do it that I can tell. 将文件传输到IaaS VM可能会有点痛苦,因为我无法理解它的优雅方式。 The options we've used are: 我们使用的选项是:

  1. FTP onto the machine by running an FTP server application inside the VM 通过在VM内运行FTP服务器应用程序将FTP映射到计算机上
  2. Open an RDP connection with a shared clipboard and/or hard disks and copy the file(s) 使用共享剪贴板和/或硬盘打开RDP连接并复制文件
  3. Create a VPN and copy the files via UNC 创建VPN并通过UNC复制文件
  4. Use the new Azure File Service feature recently announced into preview ( http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx ) then use AzCopy ( http://aka.ms/azcopy ) to transfer the files into blob storage 使用最近公布的新Azure文件服务功能预览( http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx )然后使用AzCopy( http://aka.ms/azcopy )将文件传输到blob存储中

Option 4 is probably the most elegant, but equally the most complicated, as it involves signing up for the feature preview then getting everything working. 选项4可能是最优雅的,但同样也是最复杂的,因为它涉及注册功能预览然后让一切正常工作。 It would however allow you to access the files via IaaS across multiple machines as well as accessing the files via any PaaS solutions you might have. 但是,它允许您通过IaaS跨多台计算机访问文件,以及通过您可能拥有的任何PaaS解决方案访问文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM