VMSS diagnostics - az vmss diagnostics

Configure the Azure Virtual Machine Scale Set diagnostics extension.

Commands

az vmss diagnostics get-default-config Show the default config file which defines data to be collected.
az vmss diagnostics set Enable diagnostics on a virtual machine scale set.

az vmss diagnostics get-default-config

Show the default config file which defines data to be collected.

az vmss diagnostics get-default-config [--is-windows-os]

Optional Parameters

--is-windows-os

az vmss diagnostics set

Enable diagnostics on a virtual machine scale set.

az vmss diagnostics set --resource-group
--settings
--vmss-name
[--no-auto-upgrade]
[--protected-settings]
[--version]

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

--settings

Json string or a file path, which defines data to be collected.

--vmss-name

Scale set name.

Optional Parameters

--no-auto-upgrade

By doing this, extension system will not pick the highest minor version for the specified version number, and will not auto update to the latest build/revision number on any scale set updates in future.

--protected-settings

Json string or a file path containing private configurations such as storage account keys, etc.

--version

Version of the diagnostics extension. Will use the latest if not specfied.