Skip to main content

defender_for_storages

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

Overview

Namedefender_for_storages
TypeResource
Idazure.security.defender_for_storages

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
is_enabledtextfield from the properties object
malware_scanningtextfield from the properties object
override_subscription_level_settingstextfield from the properties object
resourceIdtextfield from the properties object
sensitive_data_discoverytextfield from the properties object
settingNametextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceId, settingNameGets the Defender for Storage settings for the specified storage account.
createINSERTresourceId, settingNameCreates or updates the Defender for Storage settings on a specified storage account.

SELECT examples

Gets the Defender for Storage settings for the specified storage account.

SELECT
id,
name,
is_enabled,
malware_scanning,
override_subscription_level_settings,
resourceId,
sensitive_data_discovery,
settingName,
type
FROM azure.security.vw_defender_for_storages
WHERE resourceId = '{{ resourceId }}'
AND settingName = '{{ settingName }}';

INSERT example

Use the following StackQL query and manifest file to create a new defender_for_storages resource.

/*+ create */
INSERT INTO azure.security.defender_for_storages (
resourceId,
settingName,
properties
)
SELECT
'{{ resourceId }}',
'{{ settingName }}',
'{{ properties }}'
;