π§ Azure Storage Account Cross Tenant Replication is enabled - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml
- Located in: π Azure Storage Account Cross Tenant Replication is enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Storage Account | CA10__CaAzureStorageAccount__c | 23 | 1 | 13 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:45:55.357053010Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 299 | βοΈ extract('CA10__crossTenantReplication__c').isEmpty() | βοΈ null |
π’ | test3 | βοΈ 199 | βοΈ extract('CA10__crossTenantReplication__c') == 'Allow' | βοΈ null |
π’ | test4 | βοΈ 399 | βοΈ extract('CA10__crossTenantReplication__c') == 'Deny' | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/storage/disable-cross-tenant-replication/policy.yaml | A3ADE0C066BDCE9ABD95BCD3D9DF3A42 |
Open | /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml | EF09D74F7D782C5E805E269F1D34D045 |
Open | /types/CA10__CaAzureStorageAccount__c/object.extracts.yaml | 92D968DD14AC8426E1942BC29A409B13 |
Open | /ce/ca/azure/storage/disable-cross-tenant-replication/test-data.json | DA3B15995258930C4CF9CE07620416B0 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureStorageAccount__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "This Storage account allows Cross Tenant Replication."
remediationMessage: "Consider disabling Cross Tenant Replication if object replication policies will not involve storage accounts in different AAD tenants."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__crossTenantReplication__c"
right:
TEXT: "Allow"
- status: "INCOMPLIANT"
currentStateMessage: "Cross Tenant Replication is not explicitly denied."
remediationMessage: "Consider disabling Cross Tenant Replication since the storage account can still participate in object replication policies across tenants."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__crossTenantReplication__c"
- status: "COMPLIANT"
currentStateMessage: "Cross Tenant Replication is denied."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__crossTenantReplication__c"
right:
TEXT: "Deny"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."