Bharath Kumar P
Bharath Kumar P

Reputation: 1

Azure Java SDK - VHD upload

While trying to upload an VHD file to azure storage through java sdk getting following error

Error :

Response received. Status code = '400', Request ID = '33ed86f1-0001-0085-383d-c67f28000000', Content-MD5 = 'null', ETag = 'null', Date = 'Tue, 14 Jun 2016 13:09:43 GMT'. Error response received. HttpStatusCode= 400, HttpStatusMessage= The specified blob or block content is invalid., ErrorCode= InvalidBlobOrBlock, ExtendedErrorInformation= {ErrorMessage= The specified blob or block content is invalid.. Checking if the operation should be retried. Retry count = '0', HTTP status code = '400', Error Message = 'The specified blob or block content is invalid.'

.

Upvotes: 0

Views: 159

Answers (2)

Anu Thomas Chandy
Anu Thomas Chandy

Reputation: 570

Inaddition to PowerShell/azcopy (those target Windows users), there is also vhd upload tool written in Go lang which is cross-platform. In case you are in Linux and want to try vhd upload, this tool should help you https://github.com/Microsoft/azure-vhd-utils

Upvotes: 0

Alex Belotserkovskiy
Alex Belotserkovskiy

Reputation: 4062

That is the issue that may occurs because of different reasons - most of them i encountered were fixed in a matter of time. There is a very good article from Gaurav Mantri described what can be done to fix that - please check that. In a short - it may occurs because you tried to upload the same blob a few times in a short time. Try to wait and upload again.

The second thought i had is could you try to upload your VHD as a fixed blob using different methods? For example, PowerShell or azcopy. But i do not know the scenario, so it is just a thought.

Upvotes: 1

Related Questions