How to list IP addresses assigned to Azure VM

The Azure CLI is used to create and manage Azure resources from the command line or in scripts. Following CLI command lists IP addresses assigned to Azure VM

        
    
az vm list-ip-addresses \
--resource-group "RESOURCE_GROUP_NAME" \
--name "VM_NAME" \
--query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" \
--output tsv

        
    


Follow US on Twitter: