π§ Azure Bastion Host shareable links are enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/azure/bastion/shareable-link/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-11-14T12:03:21.418999126Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/bastion/shareable-link/policy.yaml | 7987395BBAD66DEE1E96A13D4FE5065E |
| Open | /ce/ca/azure/bastion/shareable-link/prod.logic.yaml | B765B92D5867BC1D00B3866E24EB56D6 |
| Open | /ce/ca/azure/bastion/shareable-link/test-data.json | B15B4C1F8129A7D4255BB4371FE6E0B7 |
| Open | /types/CA10Z1__CaAzureBastionHost__c/object.extracts.yaml | D44B8226865A67C63162737E7CB085D7 |
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β
---
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.