I am trying to make custom recommendations work. I created a custom recommendation that looks meta data of a keyvault and checks if PublicNetworkAccess is enabled if so then it finds "iprules" in meta data. If it can see the word "value" in array iprules it means that our keyvault has IP restrictions which is safe to use.
I didn't have any issues while creating it but the issue is that I can't see this recommendation being triggered even after 12 + hours. I know I'm alerting on something that is safe but just trying to test the tool before I use the actual use cases. I think custom recommendation follows a specific format or something? Please help if you know anything :)
Here's the kql -
RawEntityMetadata
| where Environment == 'Azure' and Identifiers.Type =~ 'Microsoft.KeyVault/vaults'
| parse Record with * 'publicNetworkAccess":"' publicNetworkAccess:string '"' *
| where publicNetworkAccess contains "Enabled"
| parse Record with * "ipRules" ipRules:string ',' *
//| where ipRules contains "value"
| extend ABC = ipRules
| project Name, Environment, Record, publicNetworkAccess, HealthStatus = "HEALTHY", ipRules, Identifiers, Id, AdditionalData