az vm show
Get the details of a VM. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--include-user-data, -uInclude the user data properties in the query result.--show-details, -dshow public ip address, FQDN, and power states.