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

20 lines
413 B
PowerShell
Raw Normal View History

2023-05-30 22:51:22 -07:00
function Select-AlkamiFabServers {
<#
.SYNOPSIS
Filters Service Fabric FAB servers from a list of servers by hostname convention.
#>
[CmdletBinding()]
Param(
[AllowNull()]
[AllowEmptyCollection()]
[Parameter(Mandatory=$true)]
[string[]]$Servers
)
$result = ($Servers -match "\bFAB")
if ($result -eq $false) {
return $null
}
return $result
}