Azure - Nic

Card Puncher Data Processing


What is a Network Interface? in Azure


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"


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


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

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