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"41µs
Given I call "{api}" with "GetServiceAPI" using argument "{service-type}"39µs
And I refer to "{result}" as "theService"14µs
And I call "{api}" with "GetServiceAPI" using argument "logging"40µs
And I refer to "{result}" as "loggingService"14µs
When I call "{theService}" with "TriggerDataRead" using argument "{resource-name}"6ms
And I attach "{result}" to the test output as "Data Read Trigger Result"35µs
And we wait for a period of "10000" ms10s
When I call "{loggingService}" with "QueryLogs" using arguments "{resource-name}", "data-read", and "{20}"543ms
Then "{result}" is not an error
37µ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": "709fe8ba-ca2e-47cc-b8b4-0efb97bca3dd",
"innererror": {
"code": "NspValidationFailedError",
"message": "Access to workspace 'avmlaw20260616' from '68.154.54.39' 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"14µs
And I attach "{readLogs}" to the test output as "Data Read Logs"14µs
Then "{readLogs}" is an array of objects with at least the following contents
13µs 📎 Attachments:Data Read Trigger Result
View JSON (4 bytes)
null