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
https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/
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 "a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-20150726-en.us-127GB.vhd"
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 "10.0.1.74" -VM $vm
Step 5
Add additional NICs to the VM configuration.
Add-AzureNetworkInterfaceConfig -Name "Ethernet2" -SubnetName "Subnet-1" -StaticVNetIPAddress "10.0.0.14" -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 "10.0.0.12" | Update-AzureVM
In Order to Run the Blow Commands you have you install the Azure Poweshell follow this
https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/
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 "a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-20150726-en.us-127GB.vhd"
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 "10.0.1.74" -VM $vm
Step 5
Add additional NICs to the VM configuration.
Add-AzureNetworkInterfaceConfig -Name "Ethernet2" -SubnetName "Subnet-1" -StaticVNetIPAddress "10.0.0.14" -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 "10.0.0.12" | Update-AzureVM
No comments:
Post a Comment