Azure Administrator > Network > NIC
OBS:
In the Portal, we can not create a NIC with a Public IP Address associate with it.
✔ configure NIC with PowerShell
# get information
Get-AzNetworkInterface [-Name]
# create NIC with PUBLIC IP ADDRESS (PIP)
$vnet = Get-AzVirtualNetwork
-Name
-ResourceGroupName
$subnet = Get-AzVirtualNetworkSubnetConfig
-Name
-VirtualNetwork $vnet
$PIP = Get-AzPublicIPAddress
-Name "myPIP"
-ResourceGroupName
$IPConfig1 = New-AzNetworkInterfaceIpConfig
-Name "IPConfig-1"
-Subnet $subnet
-PublicIpAddress $PIP
-Primary
$NIC = New-AzNetworkInterface
-Name "myNIC"
-ResourceGroupName
-Location
-IpConfiguration $IPConfig1