Suppose we have an existing Load Balancer and we need to an additional load balancing rule in it. In such case we can use below azure power shell commands to implement the same. The commands we used are comes under "AzureRM.Network" Module for Azure Resource Manager. Save the new configuration by using Set-AzureLoadBalancer.
An Azure load balancer is a Layer-4 (TCP, UDP) load balancer. Usually a load balancer gave distributed traffic among VMs in it even if one VM is in down state. I prepared this article by referring the old Azure doc related to Load balancer. So use it for setting up load balancer on azure
Here we are going to add Nat rules to existing Azure load balancer . After that attach these NAT rules to an different NIC we have for the load balanced VM. I used Power shell AzureRM Network command to add additional NAT rules. Now you can see new load-balanced NAT rules are added.
By default it’s not necessary to have an Availability set for creating a new VM. But Availability set is necessary if you are going to attach this VM to a load balancer. We have to set the Availability set at the time of creation of VM. At this moment it’s not possible to attach
Refer below steps for creating new azure vm using powershell commands comes under AzureRM Network. Before we proceed with creation of VM we need below resources in our azure accounts and the information regarding our existing account. If it’s not available create it. Resource Group A storage Account Our account Geographical Location NIC card
Subnet change of VM is only possible if the both subnet are in the same vnet. Virtual network change of an existing VM is not possible at this moment. Need to delete the VM and create it again. We used old AzureRM Network powershell commands. Refer this article for how to change subnet for
The number of NIC cards supported by Azure VMs depends on Azure VM size(VM plans). If we would like to add new NIC card to an Azure VM which only supports one NIC cards, need to remove the existing one. In such cases, we need to follow below methods. I used AzureRM.Network powershell commands
Here I am using the Resource Manager and AzureRM.Network Powershell to add new NIC on existing VMs. Use it for add additional nic to azure vm whether you are still maintains old AzureRM module. Please note that multiple NICs are only supported by few VM plans (VM size). So before proceeding with adding a