[英]how to add Microsoft.WindowsAzure.Storage assembly in powershell script
[英]Azure Files - How to obtain Microsoft.WindowsAzure.Commands.Storage.File.dll?
我想尝试新的Azure文件服务( http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/11/introducing-microsoft-azure-file-service.aspx ),然后启动PowerShell示例用这条线
import-module .\Microsoft.WindowsAzure.Commands.Storage.File.dll
即使我刚刚安装了最新版本的Azure PowerShell,这对我来说还是失败的。
import-module:未加载指定的模块'。\\ Microsoft.WindowsAzure.Commands.Storage.File.dll',因为在任何模块目录中均未找到有效的模块文件。 在第1行:char:1 + import-module。\\ Microsoft.WindowsAzure.Commands.Storage.File.dll + ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:ResourceUnavailable:(。\\ Microsoft.Win ... torage.File.dll:String)[导入模块],FileNotFoundException + FullyQualifiedErrorId:Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
在哪里可以获得此文件? 我搜索了google,提到的唯一一个地方就是上述教程。
请从此处下载包含此文件和其他文件的zip文件: http : //go.microsoft.com/fwlink/?LinkID=398183
您可能需要使用以下命令解除阻止该cmdlet:
unblock-file .\Microsoft.WindowsAzure.Commands.Storage.File.dll
据我所知,Azure存储团队错过了博客文章中的此链接,他们将很快对其进行更新。
博客文章现已更新,其中包含有关如何安装cmdlet的详细信息: http : //blogs.msdn.com/b/windowsazurestorage/archive/2014/05/11/introducing-microsoft-azure-file-service.aspx#faq7
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.