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

20 lines
421 B
PowerShell
Raw Permalink Normal View History

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