Skip to main content

🧠 Azure subscription has multiple sparse Front Door profiles - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-09-22T15:06:36.048951256Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/policy.yamlE2404F5D6E702A8903E16ED6E58E6366
Open/ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/prod.logic.yaml9E5083CC6706B9A7D0688E24FF863903
Open/ce/ca/azure/front-door/subscription-has-multiple-sparse-profiles/test-data.json98012F730F7FDA6D560B68D4D1035DF9
Open/types/CA10Z1__CaAzureFrontDoorProfile__c/object.extracts.yamlFC434AB22B268CA6B9356BB96D235ED7

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​

Open File

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