Closed
Description
Describe the bug
cnspec> azure.subscription.cloudDefender.settingsSentinel {*}
azure.subscription.cloudDefender.settingsSentinel: {
name: "Sentinel"
id: "/subscriptions/<subscription>providers/Microsoft.Security/settings/Sentinel"
kind: "AlertSyncSettings"
type: "Microsoft.Security/settings"
}
Should also return the properties
field with the sub-field enabled
:
az account get-access-token --query "{subscription:subscription,accessToken:accessToken}" --out tsv | xargs -L1 bash -c 'curl -X GET -H "Authorization: Bearer $1" -H "Content-Type:application/json" https://management.azure.com/subscriptions/<subscription>/providers/Microsoft.Security/settings?api-version=2021-06-01' | jq '.|.value[] '
{
"id": "/subscriptions/<subscription>/providers/Microsoft.Security/settings/MCAS",
"name": "MCAS",
"type": "Microsoft.Security/settings",
"kind": "DataExportSettings",
"properties": {
"enabled": true
}
}
The same goes for WDATP and Sentinel.
To Reproduce
A seen above run the commands.
Expected behavior
The cnspec command also need to include the field below for MCAS,WDATP,Sentinel.
"properties": {
"enabled": true
}
Screenshots or CLI Output
If applicable, add screenshots or the CLI output to help explain your problem.
Desktop (please complete the following information):
azure 11.3.42