Microsoft Azure Portal没有提供可以直接把文件上传到Azure Blob的界面,你可以使用Azure API编写程序完成文件上载。更简单的方法,则是下载使用Azure Powershell SDK 提供的命令工具Set-AzureStorageBlogContent。可惜地市MSDN上并未给出详细的使用介绍,下面是一个我用过的例子 :
New-AzureStorageContext -StorageAccountName <mystorageaccount> -StorageAccountKey <mystoragekey> `
| Set-AzureStorageBlobContent -Container <mycontainer> -File d:\myfile.zip -Force
比Powershell命令更简单的方法,就是下载Windows Azure Storage Explorer 工具,它提供了上传文件的功能。
本文介绍了几种将文件上传到Azure Blob存储的方法,包括使用Azure PowerShell SDK的Set-AzureStorageBlobContent命令以及通过Windows Azure Storage Explorer工具进行上传。
112

被折叠的 条评论
为什么被折叠?



