Scenario: Verify data read operations are logged with identity and timestamp
@CCC.Core @CCC.Core.CN04 @PerService @tlp-red @Behavioural @object-storage @virtual-machines @serverless-computingGiven a cloud api for "{config}" in "api"56µs
Given I call "{api}" with "GetServiceAPI" using argument "{service-type}"35µs
And I refer to "{result}" as "theService"22µs
And I call "{api}" with "GetServiceAPI" using argument "logging"25µs
And I refer to "{result}" as "loggingService"21µs
When I call "{theService}" with "TriggerDataRead" using argument "{resource-name}"7ms
And I attach "{result}" to the test output as "Data Read Trigger Result"30µs
And we wait for a period of "10000" ms10s
When I call "{loggingService}" with "QueryLogs" using arguments "{resource-name}", "data-read", and "{20}"22ms
Then "{result}" is not an error
30µsexpected {result} to not be an error, but got: Log Analytics workspace query: POST https://api.loganalytics.io/v1/workspaces/433b7b84-1ba6-4f5c-8375-6d2016f07e6a/query
--------------------------------------------------------------------------------
RESPONSE 403: 403 Forbidden
ERROR CODE: InsufficientAccessError
--------------------------------------------------------------------------------
{
"error": {
"message": "The provided credentials have insufficient access to perform the requested operation",
"code": "InsufficientAccessError",
"correlationId": "0c824944-cbe6-424e-a97b-c82fcac935de",
"innererror": {
"code": "NspValidationFailedError",
"message": "Access to workspace 'avmlaw20260616' from '172.203.195.1' is denied. To allow access from public networks, change the workspace Networking settings or add it to a Network Security Perimeter. (workspace resource ID: /subscriptions/c1cedd8e-bf91-4d7d-a4cc-45700402a2a1/resourceGroups/avm-testing/providers/microsoft.operationalinsights/workspaces/avmlaw20260616) Please contact your administrator."
}
}
}
--------------------------------------------------------------------------------
And I refer to "{result}" as "readLogs"20µs
And I attach "{readLogs}" to the test output as "Data Read Logs"13µs
Then "{readLogs}" is an array of objects with at least the following contents
12µs 📎 Attachments:Data Read Trigger Result
View JSON (4 bytes)
null