【问题标题】:Powershell error when using CloudDrive Azure sample使用 CloudDrive Azure 示例时出现 Powershell 错误
【发布时间】:2010-10-30 02:11:50
【问题描述】:

我目前正在尝试使用 Azure SDK 附带的 CloudDrive (Powershell) 示例来列出我存储的 blob。我在这个过程的早期就遇到了一个错误,我想肯定是我做错了什么——我只是不知道如何调试这种问题......

我关注了great tutorial 的日志记录,还观看了"How To" video,他们都轻而易举地从我遇到问题的区域掠过。

看起来很简单,您运行 MountDrive Powershell 脚本,默认情况下该脚本将查看本地计算机上的开发存储,该脚本将为您安装两个新驱动器,一个 Blob 驱动器和一个队列驱动器。

然后您可以执行“dir Blob:”或“dir Queue:”,并在上面的链接中显示所需的信息。在我的情况下,dir Queue: 工作得很好,但 dir Blob: 会产生以下 Powershell 错误:

....\Azure\samples\CloudDrive\scripts> dir Blob:
Get-ChildItem : The specified container name ".." is not valid!Please choose a name that conforms to the naming conventions for containers!
At line:1 char:4
+ dir <<<<  Blob:
    + CategoryInfo          : NotSpecified: (:) [Get-ChildItem], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.GetChildItemCommand

现在上面提到的“问题”容器名称 - “..” - 看起来很像您可以执行“dir”操作的任何驱动器中列出的“点”和“两个点”。我不确定这是否与此有关,但在我见过的所有在线演示中,人们都会得到他们的 Blob 文件夹等的列表,我只是得到这个错误,我不知道如何解决它。

非常感谢任何帮助...

更新:我确实在使用预装了 Powershell 的 Windows 7 RC。如果这个版本实际上是错误的,那么我该如何去那里获得以前的版本......如果可能的话?

谢谢,

罗伯克

【问题讨论】:

    标签: powershell azure blob


    【解决方案1】:

    您使用的是 Windows 7 RC 吗?如果是这样,则该系统上的 powershell 版本中存在一些错误,可能会阻止示例正常工作。我已经在 Vista 上成功使用了 blob 提供程序,所以我确信示例没问题。

    -奥辛

    【讨论】:

    • 是的,我正在使用 windows 7 RC - Powershell 已经安装好了。如果有“几个错误” - 那么如何获得更好的版本?
    • 你不能。最好的办法是安装 Virtual XP(win7 免费)并将 powershell 2.0 CTP3 安装到虚拟环境中。 Win7 powershell是系统组件,不能降级。
    • 非常感谢您的帮助 Oisin - 非常友善。附言我使用 GUI 工具查看我的存储没有问题,我主要是出于自动化目的查看 Powershell 端。再次感谢...
    猜你喜欢
    • 2011-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多