๐ง Azure App Service Plan has no Apps assigned - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2026-02-10T22:33:24.849052096Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | test1 | โ๏ธ 299 | โ๏ธ extract('CA10__numberOfSites__c') == number(0.0) | โ๏ธ null |
| ๐ข | test2 | โ๏ธ 199 | โ๏ธ extract('CA10__numberOfSites__c').isEmpty() | โ๏ธ null |
| ๐ข | test3 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/app-service/plan-without-apps/policy.yaml | B5E3D0CADC5068FE264A0B4C7A23D49D |
| Open | /ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml | 808879315748BEF90402AF75AFAEBB82 |
| Open | /ce/ca/azure/app-service/plan-without-apps/test-data.json | 2CD0BC829C66590E4352D747382FD188 |
| Open | /types/CA10__CaAzureAppServicePlan__c/object.extracts.yaml | 874C85D079713FFDDFD45E8EC52BC0A5 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml
Contentโ
---
inputType: "CA10__CaAzureAppServicePlan__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAzureAppServicePlan__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Azure App Service plan has no apps assigned."
remediationMessage: "Delete the empty App Service plan."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__numberOfSites__c"
- status: "INCOMPLIANT"
currentStateMessage: "The Azure App Service plan has no apps assigned."
remediationMessage: "Delete the empty App Service plan."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__numberOfSites__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Azure App Service plan has apps assigned."