Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cannot create a VM within a Virtual Network if the Storage Account has not been created #554

tomconte opened this Issue May 22, 2013 · 1 comment


None yet
2 participants

tomconte commented May 22, 2013

The command-line tool crashes if it does not find a Storage Account in the Affinity Group requested:

$ azure vm create --virtual-network-name cdh --subnet-names Subnet-1 --affinity-group cdh-AG --vm-size small --ssh 22 --ssh-cert ./myCert.pem mycdh b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-12_04_2-LTS-amd64-server-20130415-en-us-30GB tom 'Pass123!'
info:    Executing command vm create
+ Looking up image
+ Looking up cloud service
+ Creating cloud service
+ Retrieving storage accounts
error:   undefined is not a function
info:    Error information has been recorded to azure_error
tom@tombuntu:~/cloudera_beta$ cat azure_error
Wed May 22 2013 12:51:57 GMT+0000 (UTC):
[TypeError: undefined is not a function]
TypeError: undefined is not a function
    at /usr/local/lib/node_modules/azure-cli/lib/util/utils.js:301:21
    at callback_ (/usr/local/lib/node_modules/azure-cli/lib/util/utils.js:156:9)
    at finalCallback (/usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/serviceManagement/servicemanagementservice.js:1019:7)
    at /usr/local/lib/node_modules/azure-cli/lib/util/utils.js:215:9
    at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:403:15
    at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:616:11
    at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:402:13
    at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/serviceManagement/servicemanagementservice.js:1022:5
    at Request.processResponseCallback [as _callback] (/usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:240:11)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/azure/node_modules/request/index.js:148

The comment at line 1019 in /usr/local/lib/node_modules/azure-cli/lib/util/utils.js reads:

// Didn't find a storage account that matched location/affinityGroup.  Create a new one.

But it fails because createNewStorageAccount_ is not defined.

Duplicate of:

@andrerod andrerod closed this May 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment