CmdID

CmdID / az / az vm / az vm boot-diagnostics

az vm boot-diagnostics enable

Enable the boot diagnostics on a VM. Azure CLI reference

2 examples 1 option Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Enable boot diagnostics on all VMs in a resource group.

az vm boot-diagnostics enable --storage https://mystor.blob.core.windows.net/ --ids $(az vm list -g MyResourceGroup --query "[].id" -o tsv)Identify
--storageName or URI of a storage account (e.g. https://your_storage_account_name.blob.core.windows.net/).
--idsOne or more resource IDs (space-delimited).

Enable the boot diagnostics on a VM. (autogenerated)

az vm boot-diagnostics enable --name MyVirtualMachine --resource-group MyResourceGroup --storage https://mystor.blob.core.windows.net/Identify
--resource-groupName of resource group.
--storageName or URI of a storage account (e.g. https://your_storage_account_name.blob.core.windows.net/).

Options

1 in the Azure CLI reference
--storageName or URI of a storage account (e.g. https://your_storage_account_name.blob.core.windows.net/).