Many resources allow Diagnostic logging to be enabled to one or more target sources. Although the metrics are specific to each type of resource, the target information of how and where are common and described by the Diagnostic Target object.
Diagnostic:- Name:'string'Log:Enabled:boolean # True (D if Category not null), FalseCategory:[array] # Defaults to all if enabledMetric:Enabled:boolean # True (D if MetricCategory not null), FalseCategory:[array] # Defaults to all if enabledTarget:Blob:StorageAccount:'string'StorageKeyType:'string'# Primary, SecondaryRetentionInDays:numberResourceGroupName:'string'# Defaults to RG of resourceSubscriptionName:'string'# Defaults to Sub of resourceEventHub:Name:'string'Namespace:'string'SharedAccessPolicy:'string'# RootManageSharedAccessKey (D)ResourceGroupName:'string'# Defaults to RG of resourceSubscriptionName:'string'# Defaults to Sub of resourceLogAnalytics:Workspace:'string'ResourceGroupName:'string'# Defaults to RG of resourceSubscriptionName:'string'# Defaults to Sub of resource