For system, network and cloud administrators
After creating an Azure virtual machine, you can view its public and private IP by using:
az vm list-ip-addresses --name YourVMName -o table