【发布时间】:2017-09-23 10:03:01
【问题描述】:
我正在使用带有 Azure cmdlet 的 powershell 来尝试简单地查看 blob 存储中的项目
$StorageContext = New-AzureStorageContext -StorageAccountName 'myblobname' -StorageAccountKey '2341231234asdff2352354345=='
$Container = Get-AzureStorageContainer -Name 'mycontainer' -Context $StorageContext
$blobs = Get-AzureStorageBlob -Container $Container
Error:
Get-AzureStorageBlob : Could not get the storage context. Please pass in a storage context or set the current storage context.
我 100% 确定凭据是正确的(本文中只是随机缩短的凭据数据)
为什么会出现这个错误?
是否使用了 AzureRM? AzureRM 版本列为 3.8.0。 我需要哪些版本的脚本才能让它工作?
【问题讨论】:
标签: powershell azure blob azure-blob-storage