CmdID / az / az vm / az vm boot-diagnostics
az vm boot-diagnostics get-boot-log
Get the boot diagnostics log from a VM. Azure CLI reference
2 examples Its page in the Azure CLI reference
Examples
Get diagnostics logs for all VMs in a resource group.
az vm boot-diagnostics get-boot-log --ids $(az vm list -g MyResourceGroup --query "[].id" -o tsv)Identify--idsOne or more resource IDs (space-delimited).Get the boot diagnostics log from a VM. (autogenerated)
az vm boot-diagnostics get-boot-log --name MyVirtualMachine --resource-group MyResourceGroupIdentify--resource-groupName of resource group.