internal/functions/Get-ResourceState.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
function Get-ResourceState ($state) {
    switch ($state) {
        -1 { "Unknown" }
        0   { "Inherited" }
        1   { "Initializing" }
        2   { "Online" }
        3   { "Offline" }
        4   { "Failed" }
        128 { "Pending" }
        129 { "Online Pending" }
        130 { "Offline Pending" }
    }
}