Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've launched an Ubuntu VM on , and set it's REGION/AFFINITY GROUP/VIRTUAL NETWORK to an affinity group that I created.

virtual network configuration

But unfortunately it's getting a random IP address outside my specified network (10.175.174.xx).

Why would this be, and what do I need to do differently to get this server on my virtual network?


Today I tried creating a brand new VM using Ubuntu Server and discovered that I can associate the VM with an affinity group, but not with a Virtual Network. This is probably where I went wrong before. So the new question is...

"How can I associate a new Ubuntu Server with a Virtual Network on Windows Azure?"

Here's a screenshot of the relavent setup with Ubuntu

enter image description here

And here's the EXACT SAME dropdownlist when setup on Windows Server

enter image description here

share|improve this question
where do you see this address? on the portal or in your VM? – user152459 Jan 8 '13 at 7:21
I'm seeing it within the portal. – Chase Florell Jan 8 '13 at 15:50
I'm also seeing it in the terminal when I log in. IP address for eth0: 10.175.174.xx – Chase Florell Jan 8 '13 at 16:53
up vote 1 down vote accepted

After a little bit (two days) of digging, I was able to get in touch with an Azure expert on twitter.

Michael Washam ‏@MWashamMS
@ChaseFlorell @SyntaxC4 @WindowsAzure The portal doesn't support deploying Linux VMs into a VNET (yet). You have to use cli (PS or Node)

The result is quite simple, use

# From Get-AzureVMImage 
$img = 'b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-12_04_1-LTS-amd64-server-20121218-en-us-30GB'
$user = 'somelinuxuser'
$pass = 'somelinuxpwd!'
$vnet = 'HybridVNET'
$ag = 'WestUSAG'
$svcname = 'mylinuxsvc1' 

New-AzureVMConfig -Name 'linuxfromps1' -ImageName $img -InstanceSize Small |
    Add-AzureProvisioningConfig -Linux -LinuxUser $user -Password $pass |
    Set-AzureSubnet -SubnetNames 'AppSubnet' | # Optional 
    New-AzureVM -ServiceName $svcname -VNetName $vnet -AffinityGroup $ag


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.