az vmss diagnostics
Configure the Azure Virtual Machine Scale Set diagnostics extension.
Commands
Name | Description | Type | Status |
---|---|---|---|
az vmss diagnostics get-default-config |
Show the default config file which defines data to be collected. |
Core | GA |
az vmss diagnostics set |
Enable diagnostics on a VMSS. |
Core | GA |
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
For Windows VMs.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az vmss diagnostics set
Enable diagnostics on a VMSS.
az vmss diagnostics set --resource-group
--settings
--vmss-name
[--no-auto-upgrade {false, true}]
[--no-auto-upgrade-minor-version {false, true}]
[--protected-settings]
[--version]
Examples
Enable diagnostics on a VMSS. (autogenerated)
az vmss diagnostics set --protected-settings {protected-settings} --resource-group MyResourceGroup --settings '{"commandToExecute": "echo testing"}' --vmss-name MyVmss
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Json string or a file path, which defines data to be collected.
Scale set name.
Optional Parameters
Option '--no-auto-upgrade' has been deprecated and will be removed in a future release. Use '--no-auto-upgrade-minor-version' instead.
If set, the extension service will not automatically pick or upgrade to the latest minor version, even if the extension is redeployed.
If set, the extension service will not automatically pick or upgrade to the latest minor version, even if the extension is redeployed.
Json string or a file path containing private configurations such as storage account keys, etc.
Version of the diagnostics extension. Will use the latest if not specfied.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.