π§ Azure subscription has multiple sparse Front Door profiles - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-09-22T15:06:36.048951256Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 399 | βοΈ (CA10Z1__Azure_Front_Door_Profiles__r.hasNo(COMPLIANT) && CA10Z1__Azure_Front_Door_Profiles__r.hasNo(INCOMPLIANT)) || (CA10Z1__Azure_Front_Door_Profiles__r.count(COMPLIANT) == number(1.0) && CA10Z1__Azure_Front_Door_Profiles__r.hasNo(INCOMPLIANT)) || (CA10Z1__Azure_Front_Door_Profiles__r.count(INCOMPLIANT) == number(1.0) && CA10Z1__Azure_Front_Door_Profiles__r.hasNo(COMPLIANT)) | βοΈ null |
| π’ | unknown | βοΈ 299 | βοΈ CA10Z1__Azure_Front_Door_Profiles__r.has(UNDETERMINED) | βοΈ null |
| π’ | one | βοΈ 399 | βοΈ (CA10Z1__Azure_Front_Door_Profiles__r.hasNo(COMPLIANT) && CA10Z1__Azure_Front_Door_Profiles__r.hasNo(INCOMPLIANT)) || (CA10Z1__Azure_Front_Door_Profiles__r.count(COMPLIANT) == number(1.0) && CA10Z1__Azure_Front_Door_Profiles__r.hasNo(INCOMPLIANT)) || (CA10Z1__Azure_Front_Door_Profiles__r.count(INCOMPLIANT) == number(1.0) && CA10Z1__Azure_Front_Door_Profiles__r.hasNo(COMPLIANT)) | βοΈ null |
| π’ | two-singletons | βοΈ 199 | βοΈ CA10Z1__Azure_Front_Door_Profiles__r.count(COMPLIANT) >= number(2.0) | βοΈ null |
| π’ | mixed | βοΈ 400 | βοΈ otherwise | βοΈ null |
| π’ | two-singletons-with-unknown | βοΈ 199 | βοΈ CA10Z1__Azure_Front_Door_Profiles__r.count(COMPLIANT) >= number(2.0) | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/policy.yaml | E2404F5D6E702A8903E16ED6E58E6366 |
| Open | /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml | 9E5083CC6706B9A7D0688E24FF863903 |
| Open | /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/test-data.json | 98012F730F7FDA6D560B68D4D1035DF9 |
| Open | /types/CA10Z1__CaAzureFrontDoorProfile__c/object.extracts.yaml | FC434AB22B268CA6B9356BB96D235ED7 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "At least two eligible Front Door profiles each have exactly one successfully provisioned endpoint."
remediationMessage: "Review the profiles to determine whether compatible workloads can be consolidated safely."
check:
GREATER_THAN_EQUAL:
left:
RELATED_LIST_COUNT:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
right:
NUMBER: 2
- status: "UNDETERMINED"
currentStateMessage: "Profile or endpoint data is incomplete, so the subscription cannot be evaluated."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
- status: "INAPPLICABLE"
currentStateMessage: "The subscription has fewer than two eligible Standard or Premium Front Door profiles."
check:
OR:
args:
- AND:
args:
- RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
- RELATED_LIST_HAS_NO:
status: "INCOMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
- AND:
args:
- IS_EQUAL:
left:
RELATED_LIST_COUNT:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
right:
NUMBER: 1
- RELATED_LIST_HAS_NO:
status: "INCOMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
- AND:
args:
- IS_EQUAL:
left:
RELATED_LIST_COUNT:
status: "INCOMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
right:
NUMBER: 1
- RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Fewer than two eligible Front Door profiles have exactly one successfully provisioned endpoint."
relatedLists:
- relationshipName: "CA10Z1__Azure_Front_Door_Profiles__r"
importExtracts:
- file: "/types/CA10Z1__CaAzureFrontDoorProfile__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The profile is not a successfully provisioned Standard or Premium Front Door profile."
check:
OR:
args:
- NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- NOT:
arg:
OR:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10Z1__skuName__c"
right:
TEXT: "Standard_AzureFrontDoor"
- IS_EQUAL:
left:
EXTRACT: "CA10Z1__skuName__c"
right:
TEXT: "Premium_AzureFrontDoor"
- status: "UNDETERMINED"
currentStateMessage: "Endpoint data is incomplete, so the profile cannot be evaluated."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10Z1__Azure_Front_Door_Endpoints__r"
- status: "COMPLIANT"
currentStateMessage: "The profile has exactly one successfully provisioned endpoint."
check:
IS_EQUAL:
left:
RELATED_LIST_COUNT:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Front_Door_Endpoints__r"
right:
NUMBER: 1
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The profile does not have exactly one successfully provisioned endpoint."
relatedLists:
- relationshipName: "CA10Z1__Azure_Front_Door_Endpoints__r"
importExtracts:
- file: "/types/CA10Z1__CaAzureFrontDoorEndpoint__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The endpoint is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The endpoint is successfully provisioned."