CmdID / az / az vm / az vm monitor / az vm monitor log
az vm monitor log show
Execute a query against the Log Analytics workspace linked with a VM. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--analytics-query, -qQuery to execute over Log Analytics data.--timespanTimespan over which to query.