Skip to main content

๐Ÿง  Azure App Service Plan has no Apps assigned - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2026-02-10T22:33:24.849052096Z Open

ResultIdCondition IndexCondition TextRuntime 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โ€‹

FileMD5
Open/ce/ca/azure/app-service/plan-without-apps/policy.yamlB5E3D0CADC5068FE264A0B4C7A23D49D
Open/ce/ca/azure/app-service/plan-without-apps/prod.logic.yaml808879315748BEF90402AF75AFAEBB82
Open/ce/ca/azure/app-service/plan-without-apps/test-data.json2CD0BC829C66590E4352D747382FD188
Open/types/CA10__CaAzureAppServicePlan__c/object.extracts.yaml874C85D079713FFDDFD45E8EC52BC0A5

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โ€‹

Open File

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