Skip to main content

🧠 Azure Bastion Host shareable links are enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-11-14T12:03:21.418999126Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒bastion-0βœ”οΈ 199βœ”οΈ setOfText(['Basic', 'Developer']).contains(extract('CA10Z1__skuName__c'))βœ”οΈ null
🟒bastion-1βœ”οΈ 199βœ”οΈ setOfText(['Basic', 'Developer']).contains(extract('CA10Z1__skuName__c'))βœ”οΈ null
🟒bastion-2βœ”οΈ 399βœ”οΈ extract('CA10Z1__shareableLinkState__c') == 'Enabled'βœ”οΈ null
🟒bastion-3βœ”οΈ 499βœ”οΈ extract('CA10Z1__shareableLinkState__c') == 'Disabled'βœ”οΈ null
🟒bastion-4βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null
🟒bastion-5βœ”οΈ 299βœ”οΈ not(setOfText(['Standard', 'Premium']).contains(extract('CA10Z1__skuName__c')))βœ”οΈ null
🟒bastion-6βœ”οΈ 101βœ”οΈ CA10Z1__skuName__c.isEmpty()βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/azure/bastion/shareable-link/policy.yaml7987395BBAD66DEE1E96A13D4FE5065E
Open/ce/ca/azure/bastion/shareable-link/prod.logic.yamlB765B92D5867BC1D00B3866E24EB56D6
Open/ce/ca/azure/bastion/shareable-link/test-data.jsonB15B4C1F8129A7D4255BB4371FE6E0B7
Open/types/CA10Z1__CaAzureBastionHost__c/object.extracts.yamlD44B8226865A67C63162737E7CB085D7

Available Commands​

repo-manager policies generate FULL /ce/ca/azure/bastion/shareable-link/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/bastion/shareable-link/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/bastion/shareable-link/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/bastion/shareable-link/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/bastion/shareable-link/prod.logic.yaml

Content​

Open File

---
inputType: CA10Z1__CaAzureBastionHost__c
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10Z1__CaAzureBastionHost__c/object.extracts.yaml
conditions:
- status: INAPPLICABLE
currentStateMessage: This Bastion SKU does not support shareable links.
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- Basic
- Developer
search:
EXTRACT: CA10Z1__skuName__c
- status: UNDETERMINED
currentStateMessage: The Bastion SKU is unexpected.
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- Standard
- Premium
search:
EXTRACT: CA10Z1__skuName__c
- status: INCOMPLIANT
currentStateMessage: Shareable links are enabled on this Bastion host.
remediationMessage: Disable shareable links on the Bastion host.
check:
IS_EQUAL:
left:
EXTRACT: CA10Z1__shareableLinkState__c
right:
TEXT: Enabled
- status: COMPLIANT
currentStateMessage: Shareable links are disabled on this Bastion host.
check:
IS_EQUAL:
left:
EXTRACT: CA10Z1__shareableLinkState__c
right:
TEXT: Disabled
otherwise:
status: UNDETERMINED
currentStateMessage: The Bastion shareable-link setting is missing or unexpected.