Skip to main content

diagnostic_settings

Creates, updates, deletes, gets or lists a diagnostic_settings resource.

Overview

Namediagnostic_settings
TypeResource
Idazure.data_box_edge.diagnostic_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userConsentstringProactive diagnostic collection consent flag. Required. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_diagnostic_proactive_log_collection_settingsselectdevice_name, resource_group_name, subscription_idGets the proactive log collection settings of the specified Data Box Edge/Data Box Gateway device.
update_diagnostic_proactive_log_collection_settingsexecdevice_name, resource_group_name, subscription_id, propertiesUpdates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
get_diagnostic_remote_support_settingsexecdevice_name, resource_group_name, subscription_idGets the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway device.
update_diagnostic_remote_support_settingsexecdevice_name, resource_group_name, subscription_id, propertiesUpdates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
device_namestringThe device name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the proactive log collection settings of the specified Data Box Edge/Data Box Gateway device.

SELECT
id,
name,
systemData,
type,
userConsent
FROM azure.data_box_edge.diagnostic_settings
WHERE device_name = '{{ device_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.

EXEC azure.data_box_edge.diagnostic_settings.update_diagnostic_proactive_log_collection_settings 
@device_name='{{ device_name }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;