Created
April 13, 2019 22:52
-
-
Save chriskuech/d1d5380fb4f5184f9b905244a8266712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-Cluster { | |
[OutputType([Cluster]) | |
Param( | |
[ValidateNotNullOrEmpty()] | |
[string[]] $serviceIds | |
) | |
$serviceIds | ForEach-Object { | |
$service, $flightingRing, $region, $idx = $_ -split "-" | |
[Cluster]@{ | |
Service = $service | |
FlightingRing = $flightingRing | |
Region = $region | |
Index = $idx | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment