--- policy: /ce/ca/azure/log-analytics/workspace-public-network-access logic: /ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml executionTime: 2026-11-14T12:03:26.110129322Z generationMs: 75 executionMs: 647 rows: - id: workspace-0 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10Z1__publicNetworkAccessForIngestion__c') == 'Disabled' && extract('CA10Z1__publicNetworkAccessForQuery__c') == 'Disabled' actual: extract('CA10Z1__publicNetworkAccessForIngestion__c') == 'Disabled' && extract('CA10Z1__publicNetworkAccessForQuery__c') == 'Disabled' runtimeError: {} - id: workspace-1 match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" actual: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" runtimeError: {} - id: workspace-2 match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" actual: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" runtimeError: {} - id: workspace-3 match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" actual: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" runtimeError: {} - id: workspace-4 match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 300 actual: 300 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: workspace-5 match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 300 actual: 300 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: workspace-6 match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" actual: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c'))\ \ || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" runtimeError: {} usedFiles: - path: /ce/ca/azure/log-analytics/workspace-public-network-access/policy.yaml md5Hash: E7C63679A72411385752B78688022ECB content: | --- names: full: Azure Log Analytics Workspace public network access is not disabled contextual: Log Analytics Workspace public network access is not disabled description: Ensure that 'Public Network Access' for Ingestion and Queries is 'Disabled' for Log Analytics Workspaces. type: COMPLIANCE_POLICY categories: - SECURITY frameworkMappings: - /frameworks/cloudaware/resource-security/network-exposure - /frameworks/cis-azure-v7.0.0/06/01/06 - path: /ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml md5Hash: 0C8C66219FBA0D8D33ACB63A4D3A3F62 content: | --- inputType: CA10Z1__CaAzureLogAnalyticsWorkspace__c testData: - file: test-data.json importExtracts: - file: /types/CA10Z1__CaAzureLogAnalyticsWorkspace__c/object.extracts.yaml conditions: - status: INCOMPLIANT currentStateMessage: Public network access is enabled for ingestion or queries. remediationMessage: Disable public network access for both ingestion and queries. check: OR: args: - CONTAINS: arg: SET: itemType: TEXT items: - Enabled - SecuredByPerimeter search: EXTRACT: CA10Z1__publicNetworkAccessForIngestion__c - CONTAINS: arg: SET: itemType: TEXT items: - Enabled - SecuredByPerimeter search: EXTRACT: CA10Z1__publicNetworkAccessForQuery__c - status: COMPLIANT currentStateMessage: Public network access is disabled for ingestion and queries. check: AND: args: - IS_EQUAL: left: EXTRACT: CA10Z1__publicNetworkAccessForIngestion__c right: TEXT: Disabled - IS_EQUAL: left: EXTRACT: CA10Z1__publicNetworkAccessForQuery__c right: TEXT: Disabled otherwise: status: UNDETERMINED currentStateMessage: The workspace public network access settings are missing or unexpected. - path: /ce/ca/azure/log-analytics/workspace-public-network-access/test-data.json md5Hash: ADE2C5DBECB626BD127F8EF4D9789C0D content: | [ { "Id": "workspace-0", "CA10Z1__publicNetworkAccessForIngestion__c": "Disabled", "CA10Z1__publicNetworkAccessForQuery__c": "Disabled", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10Z1__publicNetworkAccessForIngestion__c') == 'Disabled' && extract('CA10Z1__publicNetworkAccessForQuery__c') == 'Disabled'" }, "CA10Z1__disappearanceTime__c": null }, { "Id": "workspace-1", "CA10Z1__publicNetworkAccessForIngestion__c": "Enabled", "CA10Z1__publicNetworkAccessForQuery__c": "Disabled", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" }, "CA10Z1__disappearanceTime__c": null }, { "Id": "workspace-2", "CA10Z1__publicNetworkAccessForIngestion__c": "Disabled", "CA10Z1__publicNetworkAccessForQuery__c": "Enabled", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" }, "CA10Z1__disappearanceTime__c": null }, { "Id": "workspace-3", "CA10Z1__publicNetworkAccessForIngestion__c": "SecuredByPerimeter", "CA10Z1__publicNetworkAccessForQuery__c": "Disabled", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" }, "CA10Z1__disappearanceTime__c": null }, { "Id": "workspace-4", "CA10Z1__publicNetworkAccessForIngestion__c": null, "CA10Z1__publicNetworkAccessForQuery__c": "Disabled", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 300, "conditionText": "otherwise" }, "CA10Z1__disappearanceTime__c": null }, { "Id": "workspace-5", "CA10Z1__publicNetworkAccessForIngestion__c": "future", "CA10Z1__publicNetworkAccessForQuery__c": "Disabled", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 300, "conditionText": "otherwise" }, "CA10Z1__disappearanceTime__c": null }, { "Id": "workspace-6", "CA10Z1__publicNetworkAccessForIngestion__c": "Enabled", "CA10Z1__publicNetworkAccessForQuery__c": null, "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 199, "conditionText": "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" }, "CA10Z1__disappearanceTime__c": null } ] - path: /types/CA10Z1__CaAzureLogAnalyticsWorkspace__c/object.extracts.yaml md5Hash: 86CADB8C0086468BE9550DBD6E650FB3 content: | --- extracts: - name: "CA10Z1__publicNetworkAccessForIngestion__c" value: FIELD: path: "CA10Z1__publicNetworkAccessForIngestion__c" - name: "CA10Z1__publicNetworkAccessForQuery__c" value: FIELD: path: "CA10Z1__publicNetworkAccessForQuery__c" script: |- CREATE TEMP FUNCTION mock_ExpectedResult() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "Id" : "workspace-0", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10Z1__publicNetworkAccessForIngestion__c') == 'Disabled' && extract('CA10Z1__publicNetworkAccessForQuery__c') == 'Disabled'" } }, { "Id" : "workspace-1", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" } }, { "Id" : "workspace-2", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" } }, { "Id" : "workspace-3", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" } }, { "Id" : "workspace-4", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 300, "conditionText" : "otherwise" } }, { "Id" : "workspace-5", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 300, "conditionText" : "otherwise" } }, { "Id" : "workspace-6", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))" } } ]; """; CREATE TEMP FUNCTION mock_CA10Z1__CaAzureLogAnalyticsWorkspace__c() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "CA10Z1__publicNetworkAccessForIngestion__c" : "Disabled", "CA10Z1__publicNetworkAccessForQuery__c" : "Disabled", "Id" : "workspace-0" }, { "CA10Z1__publicNetworkAccessForIngestion__c" : "Enabled", "CA10Z1__publicNetworkAccessForQuery__c" : "Disabled", "Id" : "workspace-1" }, { "CA10Z1__publicNetworkAccessForIngestion__c" : "Disabled", "CA10Z1__publicNetworkAccessForQuery__c" : "Enabled", "Id" : "workspace-2" }, { "CA10Z1__publicNetworkAccessForIngestion__c" : "SecuredByPerimeter", "CA10Z1__publicNetworkAccessForQuery__c" : "Disabled", "Id" : "workspace-3" }, { "CA10Z1__publicNetworkAccessForIngestion__c" : null, "CA10Z1__publicNetworkAccessForQuery__c" : "Disabled", "Id" : "workspace-4" }, { "CA10Z1__publicNetworkAccessForIngestion__c" : "future", "CA10Z1__publicNetworkAccessForQuery__c" : "Disabled", "Id" : "workspace-5" }, { "CA10Z1__publicNetworkAccessForIngestion__c" : "Enabled", "CA10Z1__publicNetworkAccessForQuery__c" : null, "Id" : "workspace-6" } ]; """; CREATE TEMP FUNCTION process_CA10Z1__CaAzureLogAnalyticsWorkspace__c( obj STRUCT< CA10Z1__disappearanceTime__c TIMESTAMP, CA10Z1__publicNetworkAccessForIngestion__c STRING, CA10Z1__publicNetworkAccessForQuery__c STRING, Id STRING >, snapshotTime TIMESTAMP ) RETURNS STRUCT DETERMINISTIC LANGUAGE js AS r""" var CollectionLib = new function () { this.parse = function(arg, separator, skipEmpty, skipDuplicates, sort, normalize) { if (arg == null) return []; let parts = arg.split(separator); return this.fromArray(parts, skipEmpty, skipDuplicates, sort, normalize); }; this.fromArray = function(arr, skipEmpty, skipDuplicates, sort, normalize) { if (arr == null) return []; let result = []; let seen = new Set(); arr.forEach(el => { let normalized = normalize ? TextLib.normalize(el) : BytesLib.normalize(el); if (!skipEmpty || (normalize ? TextLib.isNotEmpty(el) : BytesLib.isNotEmpty(el))) { if (!skipDuplicates || !seen.has(normalized)) { if (skipDuplicates) seen.add(normalized); result.push(normalized); } } }); if (sort) result.sort(); return result; }; this.equal = function(left, right) { left = left == null ? [] : left; right = right == null ? [] : right; if (left.length !== right.length) return false; for (let i = 0; i < left.length; i++) { if (left[i] !== right[i]) return false; } return true; }; this.notEqual = function(left, right) { return !this.equal(left, right); }; this.size = function(collection) { return collection == null ? 0 : collection.length; }; this.startsWith = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search); return collection[0] === normalizedSearch; }; this.endsWith = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search); return collection[collection.length - 1] === normalizedSearch; }; this.contains = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; return collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search)); }; this.containsAll = function(collection, searchArray, normalize) { if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false; return searchArray.every(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search))); }; this.containsAny = function(collection, searchArray, normalize) { if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false; return searchArray.some(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search))); }; }(); var TextLib = new function () { this.normalize = function(arg) { return arg == null ? '' : arg.replace(/\s+/g, ' ').trim().toLowerCase(); }; this.isEmpty = function(arg) { return this.normalize(arg) == ''; }; this.isNotEmpty = function(arg) { return this.normalize(arg) != ''; }; this.equal = function(left, right) { return this.normalize(left) == this.normalize(right); }; this.notEqual = function(left, right) { return this.normalize(left) != this.normalize(right); }; this.startsWith = function(arg, substring) { return this.normalize(arg).startsWith(this.normalize(substring)); }; this.endsWith = function(arg, substring) { return this.normalize(arg).endsWith(this.normalize(substring)); }; this.contains = function(arg, substring) { return this.normalize(arg).includes(this.normalize(substring)); }; this.containsAll = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.every(sub => normalizedArg.includes(this.normalize(sub))); }; this.containsAny = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.some(sub => normalizedArg.includes(this.normalize(sub))); }; }(); var BytesLib = new function () { this.normalize = function(arg) { return arg == null ? '' : arg; }; this.isEmpty = function(arg) { return this.normalize(arg) == ''; }; this.isNotEmpty = function(arg) { return this.normalize(arg) != ''; }; this.equal = function(left, right) { return this.normalize(left) == this.normalize(right); }; this.notEqual = function(left, right) { return this.normalize(left) != this.normalize(right); }; this.startsWith = function(arg, substring) { return this.normalize(arg).startsWith(this.normalize(substring)); }; this.endsWith = function(arg, substring) { return this.normalize(arg).endsWith(this.normalize(substring)); }; this.contains = function(arg, substring) { return this.normalize(arg).includes(this.normalize(substring)); }; this.containsAll = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.every(sub => normalizedArg.includes(this.normalize(sub))); }; this.containsAny = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.some(sub => normalizedArg.includes(this.normalize(sub))); }; }(); var references1 = []; // condition[0], conditionIndex:[0..99] references1.push('Deleted From Azure [CA10Z1__disappearanceTime__c]: ' + obj.CA10Z1__disappearanceTime__c); if (obj.CA10Z1__disappearanceTime__c != null) { return {status: 'DISAPPEARED', conditionIndex: 99, conditionText: "isDisappeared(CA10Z1__disappearanceTime__c)", currentStateMessage: "Object is deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[1], conditionIndex:[100..199] function extract3() { if (!this.out) { this.out = obj.CA10Z1__publicNetworkAccessForIngestion__c; } return this.out; }; function extract6() { if (!this.out) { this.out = obj.CA10Z1__publicNetworkAccessForQuery__c; } return this.out; }; references1.push('Public Network Access For Ingestion [obj.CA10Z1__publicNetworkAccessForIngestion__c]: ' + obj.CA10Z1__publicNetworkAccessForIngestion__c); references1.push('Public Network Access For Query [obj.CA10Z1__publicNetworkAccessForQuery__c]: ' + obj.CA10Z1__publicNetworkAccessForQuery__c); if (CollectionLib.contains(CollectionLib.fromArray(['Enabled', 'SecuredByPerimeter'], true, true, true, true), extract3.call(extract3), true) || CollectionLib.contains(CollectionLib.fromArray(['Enabled', 'SecuredByPerimeter'], true, true, true, true), extract6.call(extract6), true)) { return {status: 'INCOMPLIANT', conditionIndex: 199, conditionText: "setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))", currentStateMessage: "Public network access is enabled for ingestion or queries.", currentStateReferences: references1.join('\n'), remediation: "Disable public network access for both ingestion and queries.", runtimeError: null}; } // condition[2], conditionIndex:[200..299] function extract9() { if (!this.out) { this.out = obj.CA10Z1__publicNetworkAccessForIngestion__c; } return this.out; }; function extract12() { if (!this.out) { this.out = obj.CA10Z1__publicNetworkAccessForQuery__c; } return this.out; }; if (TextLib.equal(extract9.call(extract9), 'Disabled') && TextLib.equal(extract12.call(extract12), 'Disabled')) { return {status: 'COMPLIANT', conditionIndex: 299, conditionText: "extract('CA10Z1__publicNetworkAccessForIngestion__c') == 'Disabled' && extract('CA10Z1__publicNetworkAccessForQuery__c') == 'Disabled'", currentStateMessage: "Public network access is disabled for ingestion and queries.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } return {status: 'UNDETERMINED', conditionIndex: 300, conditionText: "otherwise", currentStateMessage: "The workspace public network access settings are missing or unexpected.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; """; SELECT expectedResult.Id as Id, IF ( IFNULL(expectedResult.expectedResult.status, '') = IFNULL(sObject.result.status, '') AND IFNULL(expectedResult.expectedResult.conditionIndex, -1) = IFNULL(sObject.result.conditionIndex, -1) AND IFNULL(expectedResult.expectedResult.conditionText, '') = IFNULL(sObject.result.conditionText, '') AND IFNULL(expectedResult.expectedResult.runtimeError, '') = IFNULL(sObject.result.runtimeError, ''), "MATCH", "FAIL" ) as match, expectedResult.expectedResult.status as expectedStatus, sObject.result.status as actualStatus, expectedResult.expectedResult.conditionIndex as expectedConditionIndex, sObject.result.conditionIndex as actualConditionIndex, expectedResult.expectedResult.conditionText as expectedConditionText, sObject.result.conditionText as actualConditionText, expectedResult.expectedResult.runtimeError as expectedRuntimeError, sObject.result.runtimeError as actualRuntimeError FROM UNNEST(mock_ExpectedResult()) expectedResult LEFT JOIN ( SELECT sObject.CA10Z1__disappearanceTime__c AS CA10Z1__disappearanceTime__c, sObject.CA10Z1__publicNetworkAccessForIngestion__c AS CA10Z1__publicNetworkAccessForIngestion__c, sObject.CA10Z1__publicNetworkAccessForQuery__c AS CA10Z1__publicNetworkAccessForQuery__c, sObject.Id AS Id, process_CA10Z1__CaAzureLogAnalyticsWorkspace__c( STRUCT( sObject.CA10Z1__disappearanceTime__c AS CA10Z1__disappearanceTime__c, sObject.CA10Z1__publicNetworkAccessForIngestion__c AS CA10Z1__publicNetworkAccessForIngestion__c, sObject.CA10Z1__publicNetworkAccessForQuery__c AS CA10Z1__publicNetworkAccessForQuery__c, sObject.Id AS Id ), sObject.context.snapshotTime ) as result FROM UNNEST(mock_CA10Z1__CaAzureLogAnalyticsWorkspace__c()) AS sObject ) sObject ON sObject.Id = expectedResult.Id;