Saturday, April 2, 2016

Configuring Azure VM with Multiple NIC's

The below instructions below will help you create a VM with Multiple NIC in Azure.

In Order to Run the Blow Commands you have you install the Azure Poweshell follow this

To create a VM with multiple NICs, follow the steps below:

Select a VM image from Azure VM image gallery. Note that images change frequently and are available by region.

Step 1

$image = Get-AzureVMImage -ImageName $imagename

$image = Get-AzureVMImage `
    -ImageName ""

Step 2
Create a VM configuration.

$vm = New-AzureVMConfig -Name "Edge2nics" -InstanceSize "Large" -Image $image

Step 3
Create the default administrator login.

Add-AzureProvisioningConfig –VM $vm -Windows -AdminUserName “ramesh123” -Password “password123”

Step 4

Set the configuration of the “default” NIC

Set-AzureSubnet -SubnetNames "Subnet-2" -VM $vm

Set-AzureStaticVNetIP -IPAddress "" -VM $vm

Step 5

Add additional NICs to the VM configuration.

Add-AzureNetworkInterfaceConfig -Name "Ethernet2" -SubnetName "Subnet-1" -StaticVNetIPAddress "" -VM $vm

Step 6

Create the VM in your virtual network

New-AzureVM -ServiceName "easyedge02" –VNetName “Lync” –VM $vm

To Update New IP Address for Existing VM which is already with Dual NIC configured

Get-AzureVM -ServiceName Easyedge01 -Name Lyncedge1 | Set-AzureStaticVNetIP -IPAddress "" | Update-AzureVM

No comments:

Post a Comment