我正在将一些计算结果上传到azure存储帐户。
我使用以下语句:
$context = New-AzureStorageContext -StorageAccountName "csb5387a20f4e8cx435ax9b8" -StorageAccountKey "xxxx "
Set-AzureStorageBlobContent -Container "azurescan" -File $FileName -context $context
它已经起作用,并且该声明在Cloud Shell上仍然起作用。
但是在运行手册中,他们收到以下错误消息,但不是很有帮助。
有人可以帮助我吗?
Set-AzureStorageBlobContent:找不到方法: 'System.Net.HttpWebRequest
Microsoft.WindowsAzure.Storage.RequestEventArgs.get_Request()”。在 行:329字符:5 + Set-AzureStorageBlobContent-容器“ azurescan”-文件$ FileNam ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ + CategoryInfo:CloseError :( :) [Set-AzureStorageBlobContent],StorageException + FullyQualifiedErrorId:StorageException,Microsoft.WindowsAzure.Commands.Storage.Blob.SetAzureBlobContentCommand