现在的位置: 首页 > 综合 > 正文

如何把文件上传的MIcrosoft Azure的Blob存储 ?

2014年08月29日 ⁄ 综合 ⁄ 共 442字 ⁄ 字号 评论关闭

       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 工具,它提供了上传文件的功能。





抱歉!评论已关闭.