Add a NIC in Azure with Powershell
First at all, log in Azure Login-AzureRmAccount Choice the subscription to use and declare the variables Select-AzureRmSubscription –SubscriptionId <id_of_your_subscription> $VMname = ‘VMName’ $VMRG = ‘ResourceGroupName’ $NICName = ‘NICName’ $NICResourceGroup = ‘NICResourceGroupName’ Get the VM $VM = Get-AzureRmVM -Name $VMname -ResourceGroupName $VMRG Add the second NIC $NewNIC = Get-AzureRmNetworkInterface -Name $NICName -ResourceGroupName $NICResourceGroup $VM = Add-AzureRmVMNetworkInterface … Continue reading Add a NIC in Azure with Powershell