-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method invocation failed 'DownloadBlockList' #8524
Comments
@goudys The information given above does not give us enough information to look into your issue. Please fill out the issue template: DescriptionScript/Steps for ReproductionModule VersionGet-Module -ListAvailable Environment Data$PSVersionTable Debug Output
|
I'm executing the script from Azure cloudshell and the output of above commands are PS /home/gowdilyan> Get-Module -ListAvailable
ModuleType Version Name PSEdition ExportedCommands Script 1.2.0 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutos... PS /home/gowdilyan> $PSVersionTable Name Value PSVersion 6.1.2 |
@goudys Can you give us a little more information about the script you are running? Please let us know what the commands you ran to see this error were. Additionally, please run |
Attaching the output PS /home/gowdilyan/clouddrive> $DebugPreference = "Continue" HTTP Method: Absolute Uri: Headers: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: Headers: Body: DEBUG: AzureQoSEvent: CommandName - Get-AzStorageAccount; IsSuccess - True; Duration - 00:00:00.2804496; Exception - ;
DEBUG: 11:36:14 PM - Init Operation Context for 'GetAzureStorageBlobCommand' with client request id Azure-Storage-PowerShell-35bfd017-9cfb-4316-b8f7-48395833f735. If you want to get more details, please add "-Debug" to your command.
PS /home/gowdilyan/clouddrive> Resolve-Error HistoryId: -1 Message : Exception calling "Invoke" with "1" argument(s): "Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob] does not contain Position : At /home/gowdilyan/clouddrive/code2.ps1:55 char:20 Message : Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob] does not contain a method named 'DownloadBlockList'. Position : At /home/gowdilyan/clouddrive/code2.ps1:55 char:20 Message : Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob] does not contain a method named 'DownloadBlockList'. Position : At /home/gowdilyan/clouddrive/code2.ps1:101 char:54 Message : Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer] does not contain a method named 'GetPermissions'. Position : At /home/gowdilyan/clouddrive/code2.ps1:198 char:5 Message : Exception calling "Invoke" with "1" argument(s): "Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob] does not contain Position : At /home/gowdilyan/clouddrive/code2.ps1:55 char:20 Message : Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob] does not contain a method named 'DownloadBlockList'. Position : At /home/gowdilyan/clouddrive/code2.ps1:55 char:20 Message : Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob] does not contain a method named 'DownloadBlockList'. Position : At /home/gowdilyan/clouddrive/code2.ps1:101 char:54 Message : Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer] does not contain a method named 'GetPermissions'. Position : At /home/gowdilyan/clouddrive/code2.ps1:198 char:5 DEBUG: AzureQoSEvent: CommandName - Resolve-AzError; IsSuccess - True; Duration - 00:00:00.1227932; Exception - ; PS /home/gowdilyan/clouddrive> |
@goudys From the error message, it looks like you are running synchronous call rather than async calls, which are not supported. Please check out this doc here: https://github.com/Azure/azure-powershell/blob/master/documentation/migration-guides/Az.1.0.0-migration-guide.md#4-set-blob-tier. If this does not fix your error, please copy and paste the contents of the script that you are running so we can see what call caused your failure. I will reopen if this is the case. |
Observing below error while executing the script.
<<
Exception calling "Invoke" with "1" argument(s): "Method invocation failed because [Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob] does not contain a method named 'DownloadBlockList'."At /home/gowdilyan/clouddrive/code2.ps1:55 char:20+ return $Action.Invoke($requestOption)
The text was updated successfully, but these errors were encountered: