ps/Modules/Alkami.PowerShell.Common/Public/Select-AlkamiAppServers.ps1

20 lines
421 B
PowerShell
Raw Normal View History

2023-05-30 22:51:22 -07:00
function Select-AlkamiAppServers {
<#
.SYNOPSIS
Filters app tier App servers from a list of servers by hostname convention.
#>
[CmdletBinding()]
Param(
[AllowNull()]
[AllowEmptyCollection()]
[Parameter(Mandatory=$true)]
[string[]]$Servers
)
$result = ($Servers -match "\b(APP|ALK-PLA1-QA)")
if ($result -eq $false) {
return $null
}
return $result
}