az monitor diagnostic-settings categories

Retrieve service diagnostic settings categories.

Commands

az monitor diagnostic-settings categories list Lists the diagnostic settings categories for the specified resource.
az monitor diagnostic-settings categories show Gets the diagnostic settings category for the specified resource.

az monitor diagnostic-settings categories list

Lists the diagnostic settings categories for the specified resource.

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

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').

--subscription

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

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]
[--subscription]

Required Parameters

--name -n

The name of the diagnostic setting.

--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').

--subscription

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