Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idazure.security.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.
kindstringthe kind of the settings string. Required. Known values are: "DataExportSettings", "AlertSuppressionSetting", and "AlertSyncSettings".
propertiesobjectThe resource-specific properties for this resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsetting_name, subscription_idSettings of different configurations in Microsoft Defender for Cloud.
listselectsubscription_idSettings about different configurations in Microsoft Defender for Cloud.
updateupdatesetting_name, subscription_id, kindupdating settings about different configurations in Microsoft Defender for Cloud.

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
setting_namestringThe name of the setting. Known values are: "MCAS", "WDATP", "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW", "WDATP_UNIFIED_SOLUTION", "Sentinel", and "current". Required.
subscription_idstring

SELECT examples

Settings of different configurations in Microsoft Defender for Cloud.

SELECT
id,
name,
kind,
properties,
systemData,
type
FROM azure.security.settings
WHERE setting_name = '{{ setting_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

updating settings about different configurations in Microsoft Defender for Cloud.

UPDATE azure.security.settings
SET
properties = '{{ properties }}',
kind = '{{ kind }}'
WHERE
setting_name = '{{ setting_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND kind = '{{ kind }}' --required
RETURNING
id,
name,
kind,
properties,
systemData,
type;