Skip to main content

🧠 Azure Log Analytics Workspace public network access is not disabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-11-14T12:03:26.110129322Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒workspace-0βœ”οΈ 299βœ”οΈ extract('CA10Z1__publicNetworkAccessForIngestion__c') == 'Disabled' && extract('CA10Z1__publicNetworkAccessForQuery__c') == 'Disabled'βœ”οΈ null
🟒workspace-1βœ”οΈ 199βœ”οΈ setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))βœ”οΈ null
🟒workspace-2βœ”οΈ 199βœ”οΈ setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))βœ”οΈ null
🟒workspace-3βœ”οΈ 199βœ”οΈ setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))βœ”οΈ null
🟒workspace-4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null
🟒workspace-5βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null
🟒workspace-6βœ”οΈ 199βœ”οΈ setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForIngestion__c')) || setOfText(['Enabled', 'SecuredByPerimeter']).contains(extract('CA10Z1__publicNetworkAccessForQuery__c'))βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/azure/log-analytics/workspace-public-network-access/policy.yamlE7C63679A72411385752B78688022ECB
Open/ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml0C8C66219FBA0D8D33ACB63A4D3A3F62
Open/ce/ca/azure/log-analytics/workspace-public-network-access/test-data.jsonADE2C5DBECB626BD127F8EF4D9789C0D
Open/types/CA10Z1__CaAzureLogAnalyticsWorkspace__c/object.extracts.yaml86CADB8C0086468BE9550DBD6E650FB3

Available Commands​

repo-manager policies generate FULL /ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/log-analytics/workspace-public-network-access/prod.logic.yaml

Content​

Open File

---
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.