Azure - Nic

Card Puncher Data Processing

About

What is a Network Interface? in Azure

Management

Get Id

Get the Nic id from the VM

az.cmd vm show --resource-group myResourceGroup --name myVM -d --o tsv --query "networkProfile.networkInterfaces[].id"
/subscriptions/a3c34725-da090f6b96d44d/resourceGroups/myResrouceGroup/providers/Microsoft.Network/networkInterfaces/MY_MACHINE_01VMNic

Show

az vm nic show --vm-name vmName  --resource-group resourceGName --nic nicId 

Update

Associate the Network Security Group to a VM

az network nic update \
    --resource-group myResourceGroup \
    --name myNic \
    --network-security-group myNetworkSecurityGroup

Network Security Group

Get the Network Security Group Id

az vm nic show --vm-name vmName   --nic nicId --resource-group resourceGroup --query networkSecurityGroup.id
"/subscriptions/a3c34725-da6a-41ac-87fa-06b96d44d/resourceGroups/resrouceGroupName/providers/Microsoft.Network/networkSecurityGroups/NameNSG"





Discover More
Card Puncher Data Processing
Azure - Network security group (NSG) - Firewall

A network security group (NSG) is a collection of firewall rules that can be applied to the network interface of one or several machine. Network Security Group From a nic List name...
Card Puncher Data Processing
Azure - VM

VM management in Azure Most of the commands in this article are created with the cli but your can also used third party library. Example with: Java...



Share this page:
Follow us:
Task Runner