Hi all,
I am having probems when using the --affinity-group parameter in the creation proccess of a VM. The stack of software in which I can reproduce the error is:
- OS: CentOS release 6.4 (Final) (64 Bits) (External to Windows Azure)
- node.js Version: v0.11.0 y v0.8.21
- Linux SDK Version: 0.6.14
In the first place I have to install node.js v0.8.21 in order to install and import my credentials, then I continued working with this version, when the error appeared I tryed to update to node.js v0.11.0 and the error persists.
Te concrete problem is this one: if I try to create a VM with the --location"West Europe" all runs fast and smooth like a charm, but if I try to use the --affinity-group "myaffinitygroup", the execution crashes. I've triple tested the name "myaffinitygroup" is correct, but despite this I am obtaining a crash instead an error message,
An example of the execution, and the crash report can be found after my signature.
Thanks in advance for your help! :)
Jordi.
------------------------------------------------------------------------------------------------------
RUNS OK:
azure vm create "mydnsname""my_own_image""user""complexpassword" --location "West Europe" --vm-name "myVm0001"
--vm-size "extrasmall" --ssh -v
CRASHES:
azure vm create "mydnsname" "my_own_image" "user" "complexpassword" --affinity-group"myaffinitygroup" --vm-name "myVm0001" --vm-size "extrasmall" --ssh -v
info: Executing command vm create
verbose: looking for imagemy_own_image
verbose: Looking up image
verbose: Checking for existence ofmydnsname cloud
service
verbose: Looking up cloud service
error: undefined is not a function
verbose: stack TypeError: undefined is not a function
at /usr/local/lib/node_modules/azure-cli/lib/commands/vm.js:1121:15
at callback_ (/usr/local/lib/node_modules/azure-cli/lib/utils.js:53:9)
at finalCallback (/usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/serviceManagement/servicemanagementservice.js:742:7)
at /usr/local/lib/node_modules/azure-cli/lib/utils.js:112:9
at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:401:15
at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:614:11
at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:400:13
at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/serviceManagement/servicemanagementservice.js:745:5
at Request.processResponseCallback [as _callback] (/usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/core/serviceclient.js:238:11)
at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/azure/node_modules/request/index.js:142:22)
info: Error information has been recorded to azure_error
------------------------------------------------------------------------------------------------------