Skip to main content

🧠 Azure Subscription Bastion Host does not exist - prod.logic.yaml 🟠🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure SubscriptionCA10__CaAzureAccount__c13131

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:46:13.877310666Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 199βœ”οΈ CA10Z1__Azure_Virtual_Network_Bastion_Hosts__r.has(COMPLIANT)βœ”οΈ null
🟒test2βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null
🟒test3βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/subscription/bastion-host-exist/policy.yaml5487F17CCE1F52FB504BA25BA1885C16
Open/ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml44A3EF68B82D6EC14003601AD0B9BA2B
Open/ce/ca/azure/subscription/bastion-host-exist/test-data.jsonFBFC4E74DFB1A7929FB289411BE3E3A3

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/subscription/bastion-host-exist/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAzureAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "Bastion Host exists for this Subscription."
check:
RELATED_LIST_HAS:
relationshipName: "CA10Z1__Azure_Virtual_Network_Bastion_Hosts__r"
status: "COMPLIANT"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Bastion Host doesn't exist for this Subscription."
relatedLists:
- relationshipName: "CA10Z1__Azure_Virtual_Network_Bastion_Hosts__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "Bastion Host is configured."