🧠 Azure NAT Gateway has no subnet - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/azure/virtual-network/nat-gateway-without-subnet/prod.logic.yaml - Tags:
Uses
- 📗 Azure NAT Gateway
- 🔌 Azure NAT Gateway - object.extracts.yaml
- 🔌 Azure Network Subnet - object.extracts.yaml
- 🧪 test-data.json
Test Results 🟢
Generated at: 2026-09-22T15:07:11.634253649Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | gone | ✔️ 99 | ✔️ isDisappeared(CA10Z1__disappearanceTime__c) | ✔️ null |
| 🟢 | deleting | ✔️ 199 | ✔️ extract('CA10Z1__provisioningState__c') != 'Succeeded' | ✔️ null |
| 🟢 | updating | ✔️ 199 | ✔️ extract('CA10Z1__provisioningState__c') != 'Succeeded' | ✔️ null |
| 🟢 | unknown-state | ✔️ 101 | ✔️ CA10Z1__provisioningState__c.isEmpty() | ✔️ null |
| 🟢 | empty | ✔️ 399 | ✔️ CA10Z1__Azure_Network_Subnets__r.hasNo(COMPLIANT) | ✔️ null |
| 🟢 | unknown-subnet | ✔️ 299 | ✔️ CA10Z1__Azure_Network_Subnets__r.has(UNDETERMINED) | ✔️ null |
| 🟢 | gone-subnet | ✔️ 399 | ✔️ CA10Z1__Azure_Network_Subnets__r.hasNo(COMPLIANT) | ✔️ null |
| 🟢 | attached | ✔️ 400 | ✔️ otherwise | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/virtual-network/nat-gateway-without-subnet/policy.yaml | 8302FDE8A1EA53DC37C129843BBED0D7 |
| Open | /ce/ca/azure/virtual-network/nat-gateway-without-subnet/prod.logic.yaml | 26AE917D1A709C2D1A6CCD79ED344351 |
| Open | /ce/ca/azure/virtual-network/nat-gateway-without-subnet/test-data.json | 9C3665A5FC7E81A18A8D9A0DFA984C48 |
| Open | /types/CA10Z1__CaAzureNatGateway__c/object.extracts.yaml | 362BE0CA9614DDE56A2F464C8DC8EA8D |
| Open | /types/CA10__CaAzureNetworkSubnet__c/object.extracts.yaml | A7EF995565D63A24A31BF7E89F90A083 |
Available Commands
repo-manager policies generate FULL /ce/ca/azure/virtual-network/nat-gateway-without-subnet/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/virtual-network/nat-gateway-without-subnet/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/virtual-network/nat-gateway-without-subnet/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/virtual-network/nat-gateway-without-subnet/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/virtual-network/nat-gateway-without-subnet/prod.logic.yaml
Content
---
inputType: "CA10Z1__CaAzureNatGateway__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzureNatGateway__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The NAT gateway is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "UNDETERMINED"
currentStateMessage: "A related subnet provisioning state is unavailable."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10Z1__Azure_Network_Subnets__r"
- status: "INCOMPLIANT"
currentStateMessage: "The NAT gateway has no active subnet."
remediationMessage: "Attach the NAT gateway to a needed subnet or remove it after dependency review."
check:
RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Network_Subnets__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The NAT gateway has an active subnet."
relatedLists:
- relationshipName: "CA10Z1__Azure_Network_Subnets__r"
importExtracts:
- file: "/types/CA10__CaAzureNetworkSubnet__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The subnet is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__provisioningState__c"
right:
TEXT: "Succeeded"
otherwise:
status: "COMPLIANT"
currentStateMessage: "An active subnet is attached."