For system, network and cloud administrators

How to retrieve all network interfaces ID of your Azure virtual machine using Azure CLI

In order to get all the IDs of your Azure virtual machine network interfaces, you can use:

az vm show --resource-group YourResourceGroup --name YourVMName --query "networkProfile.networkInterfaces[].id"

Leave a Reply

Your email address will not be published. Required fields are marked *