【问题标题】:Transfer big file to Azure account inside BizSpark将大文件传输到 BizSpark 内的 Azure 帐户
【发布时间】:2015-05-19 19:45:28
【问题描述】:

我的公司有一个 BizSpark 帐户,我们需要传输一个大图像文件,以便稍后在我们的网站数据库中使用。该文件大约为 550 GB,我需要将其转移到免费的 BizSpark Azure 帐户之一。 我们是 BizSpark 和 Azure 的新手,因此我们将不胜感激任何提示。 传输文件的人要求我们向他们提供 FTP 详细信息,例如服务器名称、用户名和密码。

非常感谢。

【问题讨论】:

  • 我假设您将使用存储帐户来完成这项工作,对吧?
  • 是的,存储帐户、VM 或任何其他解决方案现在都可以。

标签: azure data-transfer data-transfer-objects bizspark


【解决方案1】:

我将提供两种将内容上传到 Azure 存储的方法。

1) 使用免费存储工具。这是我使用的两个,但您还有其他选择,包括付费的。

Azure Storage Explorer

Azure Explorer

2) 使用powershell

这是我从this 文章中借用的一个简单脚本。

# Azure subscription-specific variables.
$storageAccountName = "storage-account-name"
$containerName = "container-name"

# Find the local folder where this PowerShell script is stored.
$currentLocation = Get-location
$thisfolder = Split –parent $currentLocation

# Upload files in data subfolder to Azure.
$localfolder = "$thisfolder\data"
$destfolder = "data"
$storageAccountKey = (Get-AzureStorageKey -StorageAccountName $storageAccountName).Primary
$blobContext = New-AzureStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageAccountKey
$files = Get-ChildItem $localFolder foreach($file in $files)
{
  $fileName = "$localFolder\$file"
  $blobName = "$destfolder/$file"
  write-host "copying $fileName to $blobName"
  Set-AzureStorageBlobContent -File $filename -Container $containerName -Blob $blobName -Context $blobContext -Force
} 
write-host "All files in $localFolder uploaded to $containerName!"

【讨论】:

  • 非常感谢您的及时回复。我想知道我的 Azure 帐户是否会在一个月内以 150 美元的信用额度将这 550 GB 存储在免费的 azure 帐户中。另外,其他服务器中的文件,他应该在那里安装Azure Explorer,还是什么?
  • 如果您创建了一个本地冗余存储,您需要为 550Gb 支付大约 13 美元。 Azure 每月收费 0,024 美元/Gb;是的。他将不得不安装该工具或简单地使用 powershell。没有对存储帐户的 FTP 访问权限。
  • 再次感谢您的帮助。是否可以免费存储这些数据?如您所知,我们公司有 5 个 Azure 订阅,每个订阅每月 150 美元。我只需要存储这个文件,直到我们开始在我们的网站数据库中使用它。
  • 这个尺寸没有。也许使用试用订阅,然后使用 AzCopy 在存储之间复制文件。
  • 非常感谢您的合作。我有几个疑问。团队尝试使用 Azure Explorer 将服务器上的文件夹复制到 Azure 存储帐户,但它给出了错误消息。它是否适用于复制和粘贴这个 550 GB 的大文件,Azure 存储帐户会接受吗?有一些博客说我们可以创建VM服务器并将其用作FTP。如果我这样做并使用了存储帐户,我将上传的文件是否会保存到此存储帐户?
猜你喜欢
  • 2016-09-08
  • 1970-01-01
  • 2021-06-13
  • 2015-06-10
  • 1970-01-01
  • 1970-01-01
  • 2015-06-10
  • 1970-01-01
  • 2022-11-30
相关资源
最近更新 更多