使用 CloudDrive Azure 示例时出现 Powershell 错误

发布于 2024-07-22 04:32:55 字数 1389 浏览 1 评论 0原文

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

我遵循了 关于日志记录的很棒的教程,还观看了 “操作方法”视频,它们都轻松地绕过了我遇到问题的区域。

这看起来非常简单,您运行 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。 如果这个版本实际上有错误,那么我该如何获取以前的版本......如果可能的话?

谢谢,

罗布·G

I am currently trying to use the CloudDrive (Powershell) sample that comes with the Azure SDK to list the blobs I have stored. I'm getting an error fairly early in the process, and I figure there must be something I'm doing wrong - I just don't know how to debug this kind of problem...

I have followed a great tutorial regarding logging, and also watched the "How To" video and both of them breeze right past the area where I'm having trouble.

It seems pretty straight forward, you run the MountDrive Powershell script which by default will look at the development store on the local machine, and this script will mount two new drives for you, a Blob and a Queue drive.

Then you can just perform a "dir Blob:" or a "dir Queue:" and in the links above, the required information is shown. In my case, dir Queue: works just fine, but dir Blob: yields the following Powershell error:

....\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

Now the "problem" container name being referred to above - ".." - looks suspiciously like the "dot" and "two dots" listed in any drive you may perform a "dir" operation on. I'm not sure it has anything to do with that, but in all online demos I've seen, people get a list of their Blob folders etc, I just get this error, and I don't know how to fix it.

Any help greatly appreciated...

Update: I am indeed using the Windows 7 RC with Powershell pre-installed. If this version is in fact buggy, then how do I go about getting a previous version on there...if at all possible?

Thanks,

Rob G

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高跟鞋的旋律 2024-07-29 04:32:55

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

-奥辛

Are you using Windows 7 RC? If so, there are a couple of bugs in the version of powershell on that system that may prevent samples working correctly. I have used the blob provider successfully on Vista, so I'm sure the sample is fine.

-Oisin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文