20 lines
421 B
PowerShell
20 lines
421 B
PowerShell
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
|
|
}
|