Share via


az monitor diagnostic-settings categories

Retrieve service diagnostic settings categories.

Commands

Name Description Type Status
az monitor diagnostic-settings categories list

List the diagnostic settings categories for the specified resource.

Core GA
az monitor diagnostic-settings categories show

Gets the diagnostic settings category for the specified resource.

Core GA

az monitor diagnostic-settings categories list

List the diagnostic settings categories for the specified resource.

az monitor diagnostic-settings categories list --resource
                                               [--resource-group]
                                               [--resource-namespace]
                                               [--resource-parent]
                                               [--resource-type]

Examples

List diagnostic settings categories by using resource ID

az monitor diagnostic-settings categories list --resource /subscriptions/00000000-0000-0000- 0000-000000000000/resourcegroups/myRG/providers/microsoft.logic/workflows/myWorkflow

List diagnostic settings categories by using resource name

az monitor diagnostic-settings categories list -g myRG --resource-type microsoft.logic/workflows --resource myWorkflow

Required Parameters

--resource

Name or ID of the target resource.

Optional Parameters

--resource-group -g

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

--resource-namespace

Target resource provider namespace.

--resource-parent

Target resource parent path, if applicable.

--resource-type

Target resource type. Can also accept namespace/type format (Ex: 'Microsoft.Compute/virtualMachines').

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az monitor diagnostic-settings categories show

Gets the diagnostic settings category for the specified resource.

az monitor diagnostic-settings categories show --name
                                               --resource
                                               [--resource-group]
                                               [--resource-namespace]
                                               [--resource-parent]
                                               [--resource-type]

Required Parameters

--name -n

The name of the diagnostic setting. Required.

--resource

Name or ID of the target resource.

Optional Parameters

--resource-group -g

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

--resource-namespace

Target resource provider namespace.

--resource-parent

Target resource parent path, if applicable.

--resource-type

Target resource type. Can also accept namespace/type format (Ex: 'Microsoft.Compute/virtualMachines').

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.