locked
Trouble Adding Virtual Machine to existing cloud service RRS feed

  • Question

  • Hi,

    I am trying to create a bunch of virtual machines in a cloud service using azure command line tools. I first created a cloud service.

    azure service create mycloudservice

    Then I created virtual machines by following the instructions given at the following link:

    http://azure.microsoft.com/en-us/documentation/articles/command-line-tools/#Commands_to_manage_your_Azure_virtual_machines

    The problem is that each virtual machine is creating a new cloud service. It is not getting added to the cloud service I created in the first step. My command to create virtual machine is as follows:

    azure vm create "myvmdnsname" "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04-LTS-amd64-server-20140416.1-en-us-30GB" "myusername" Password123@b -n "myvmmachinename" -l "West US" -c "mycloudservice" -t "my/cert/path" -P -e -v

    Basically, by running the above command I expect the vm to be added to mycloudservice. But the vm is creating its own cloud service myvmdnsname. It is not respecting the -c option. My expectation is that -c should add the vm to the existing cloud service.




    Monday, November 3, 2014 1:47 AM

Answers

  • Hi,

    We tried to reproduce the issue and we were able to provision a Linux VM using the below command in the same cloud service

    azure vm create -c "mycloudserviceliju" "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04-LTS-amd64-server-20140416.1-en-us-30GB" "myusername" Password123@b -l "East Asia" --ssh 9993  -t "filename.pem" -P -e –v

    Note : it was done on CentOS release 6.5

    Let me know if you still facing any issue.

    Regards,

    Bharath

    Monday, November 3, 2014 8:14 AM

All replies

  • Also, why do you require the dns name as a parameter when I am adding the vm to an existing cloud service?
    Monday, November 3, 2014 3:14 AM
  • Hi,

    Thank you for your post. I am currently researching on this and will revert back to you when i have more information on this. Appreciate your patience.

    Regards,

    Bharath

    Monday, November 3, 2014 6:53 AM
  • Hi,

    We tried to reproduce the issue and we were able to provision a Linux VM using the below command in the same cloud service

    azure vm create -c "mycloudserviceliju" "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04-LTS-amd64-server-20140416.1-en-us-30GB" "myusername" Password123@b -l "East Asia" --ssh 9993  -t "filename.pem" -P -e –v

    Note : it was done on CentOS release 6.5

    Let me know if you still facing any issue.

    Regards,

    Bharath

    Monday, November 3, 2014 8:14 AM