Azure - Nic

1 - About

3 - Management

3.1 - 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"


3.2 - Show

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

3.3 - Update

Associate the Network Security Group to a VM

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

3.4 - Network Security Group

Get the Network Security Group Id

az vm nic show --vm-name vmName   --nic nicId --resource-group resourceGroup --query


Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap