azure-xplat-cli icon indicating copy to clipboard operation
azure-xplat-cli copied to clipboard

Uploading a VM disk image with vm image create, results in error

Open neeohw opened this issue 8 years ago • 4 comments

CLI Version: 0.10.1 OS Type: Mac / Linux (Ubuntu) Installation via: npm

Mode: ARM

Environment: AzureCloud

Description: azure vm image create crashes when uploading.

Steps to reproduce:

  1. Run azure vm image create <ImageName> -u <blob-url> --os Linux <path-to-vhd>

Error stack trace:

2016-06-29T12:09:06.159Z: [TypeError: body.outputStream.on is not a function] TypeError: body.outputStream.on is not a function at /opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:444:35 at /opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:573:5 at SharedKey.signRequest (/opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/signing/sharedkey.js:199:3) at BlobService.StorageServiceClient._buildRequestOptions (/opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:555:27) at operation (/opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:275:10) at /opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:483:9 at BlobService.filter (/opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:855:7) at BlobService.StorageServiceClient._performRequest (/opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:466:8) at BlobService.StorageServiceClient.performRequestOutputStream (/opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/common/services/storageserviceclient.js:206:8) at BlobService._createPages (/opt/local/lib/node_modules/azure-cli/node_modules/azure-storage/lib/services/blob/blobservice.js:4749:10) Maartens-MacBook-Pro-2:graylog-vhd mvergouwe$

neeohw avatar Jun 29 '16 12:06 neeohw

This is a known issue, and it's ASM.

huangpf avatar Jun 29 '16 13:06 huangpf

Great! Now where is this known issue?

On 29 Jun 2016, at 15:59, huangpf [email protected] wrote:

This is a known issue, and it's ASM.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-xplat-cli/issues/2972#issuecomment-229364283, or mute the thread https://github.com/notifications/unsubscribe/AAiAcNuDX2XhpnBthIJhVUDE7PetFGAKks5qQnpZgaJpZM4JBEXr.

neeohw avatar Jun 30 '16 06:06 neeohw

@neeohw please use https://github.com/Microsoft/azure-vhd-utils to upload your vhd to azure.

anuchandy avatar Jul 03 '16 17:07 anuchandy

duplicate of #2230 - you can't use dynamic VHDs for now, only fixed

avs099 avatar Oct 25 '16 09:10 avs099