Private/Resolve-SqlPolicyFromContext.ps1
|
# ============================================================================= # Script : Resolve-SqlPolicyFromContext.ps1 # Author : Keith Ramsey # ============================================================================= # Change Log # ----------------------------------------------------------------------------- # 2026-05-09 Keith Ramsey Phase 2 release polish - DR-202 standard header applied. # ============================================================================= function Resolve-SqlPolicyFromContext { param($Scenario, $Role, $UseGmsa) # FCI Rule: Engine must be the computer object if ($Scenario -eq 'FCI' -and $Role -eq 'Engine') { return 'Std_FCI_VNN' } if ($UseGmsa) { return "Std_$($Role)_gMSA" } return "Std_$Role" } |