CmdID / az / az vmss / az vmss diagnostics
az vmss diagnostics set
Enable diagnostics on a VMSS. Azure CLI reference
1 example Its page in the Azure CLI reference
Examples
Enable diagnostics on a VMSS. (autogenerated)
az vmss diagnostics set --protected-settings {protected-settings} --resource-group MyResourceGroup --settings '{"commandToExecute": "echo testing"}' --vmss-name MyVmssIdentify--protected-settingsjson string or a file path containing private configurations such as storage account keys, etc.--resource-groupName of resource group.--settingsjson string or a file path, which defines data to be collected.--vmss-nameScale set name