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
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
kindstringthe kind of the settings string
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
getselectsubscriptionId, settingNameapi-versionSettings of different configurations in Microsoft Defender for Cloud
listselectsubscriptionIdapi-versionSettings about different configurations in Microsoft Defender for Cloud
updatereplacesubscriptionId, settingName, data__kindapi-versionupdating 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
settingNamestringThe name of the setting
subscriptionIdstringAzure subscription ID
api-versionstringAPI version for the operation

SELECT examples

Settings of different configurations in Microsoft Defender for Cloud

SELECT
id,
name,
kind,
systemData,
type
FROM azure.security.settings
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND settingName = '{{ settingName }}' -- required
AND api-version = '{{ api-version }}'
;

REPLACE examples

updating settings about different configurations in Microsoft Defender for Cloud

REPLACE azure.security.settings
SET
data__kind = '{{ kind }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND settingName = '{{ settingName }}' --required
AND data__kind = '{{ kind }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
kind,
systemData,
type;