Create VNIC in Azure
Last updated:
POWERSHELLAZURENETWORK
## Create a network interface for the VM. ##
$nic = @{
Name = "nic2"
ResourceGroupName = $RGName
Location = $Region
Subnet = $vnet.Subnets[0]
}
$nicVM = New-AzNetworkInterface @nic