如何使用Azure数据工厂将数据复制到Azure文件服务 [英] How to copy data to Azure file service using Azure data factory

查看:92
本文介绍了如何使用Azure数据工厂将数据复制到Azure文件服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure VM(窗口OS)中安装了一个软件,该软件可以对数据进行分析.我的Azure BLOB存储中有500+ GB的数据,需要通过此软件进行处理.

I have one software installed in Azure VM (window OS) which does analysis on the data. I have 500+ GB data in Azure BLOB storage which needs to be processed by this software.

我想知道是否

  1. 可以将BLOB存储作为虚拟硬盘附加到此VM,或者
  2. 是否可以使用Azure数据工厂将数据从BLOB存储复制到Azure文件服务?

或者我应该将数据保留在Azure File Service本身中,以便该软件无需复制操作即可直接访问数据吗?

OR should I keep data in Azure File Service itself so that this software can access data directly without copy operation?

推荐答案

可以将BLOB存储作为虚拟硬盘附加到此VM

it is possible to attach BLOB storage as a virtual hard disk to this VM

据我所知,可以将作为Page Blob上传到Azure Blob存储的VHD文件安装并附加到VM.有关如何将数据磁盘附加到Windows VM的信息,您可以参考此官方

As far as I know, the VHD file uploaded as a Page Blob to Azure Blob Storage could be mounted and attached to a VM. For how to attach a data disk to a windows VM, you could refer to this official tutorial.

是否可以使用Azure数据工厂将数据从BLOB存储复制到Azure文件服务

is it possible to copy data from BLOB storage to Azure File service using Azure Data factory

来自 Azure数据工厂简介中的数据移动活动"部分,我们可以发现默认情况下Data Factory不支持Azure文件存储.为了通过Data Factory将数据从Blob存储复制到Azure文件服务,您需要使用自定义活动.有关更多详细信息,您可以参考使用自定义Azure数据工厂中的活动.

From data movement activities section in Introduction to Azure Data Factory, we could find that Data Factory doesn't support Azure File Storage by default. In order to copy data from Blob Storage to Azure File service via Data Factory, you need to use a custom activity. For more details, you could refer to Use custom activities in an Azure Data Factory.

或者我应该将数据保留在Azure File Service本身中,以便该软件无需复制操作即可直接访问数据吗?

OR should I keep data in Azure File Service itself so that this software can access data directly without copy operation?

我认为,这是将数据保留在Azure文件存储中的理想方法.这样,您的VM可以连接到文件共享,然后可以像对本地文件共享一样对文件进行读写.

In my opinion, it's an ideal approach for you to keep your data in Azure File Storage. In this way, your VM could connect to the file share and then it could read and write files just like it would against an on-premise file share.

正如您所说的文件存储在Azure Blob存储中一样,我建议您可以按照以下步骤来实现它:

As you said that your files are stored in Azure Blob Storage, I recommend that you could follow the steps below to achieve it:

1.通过AzCopy从blob复制到文件共享

1.Copy from blob to file share via AzCopy

AzCopy /Source:https://myaccount1.blob.core.windows.net/mycontainer/ /Dest:https://myaccount2.file.core.windows.net/myfileshare/ /SourceKey:key1 /DestKey:key2 /S

有关更多详细信息,您可以参考官方教程.

For more details, you could refer to the official tutorial.

2.在Windows VM上映射Azure文件共享驱动器

2.Map Azure File Share Drive on windows VM

net use z: \\<your-storage-account-name>.file.core.windows.net\<file-share-name> /u:<your-storage-account-name> <your-storage-account-key>

注意:为了从Azure文件共享映射网络驱动器,文件共享可用于与存储帐户位于同一区域的VM.有关更多详细信息,您可以参考引入Microsoft Azure文件服务.

Note: For mapping a network drive from Azure File Share, the file share is available to VMs in the same region as the storage account. For more details, you could refer to Introducing Microsoft Azure File Service.

这篇关于如何使用Azure数据工厂将数据复制到Azure文件服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆