what does --only-show-errors command do in such case ? Will it be helpful to track only errors ? - https://learn.microsoft.com/en-us/cli/azure/vm/run-command?view=azure-cli-latest#az-vm-run-command-invoke-optional-parameters
Have you given a try ?