Retrieving protected virtual machines
You can use the Get-SrmProtectedVM
function in the Meadowcroft.SRM
module to retrieve the virtual machines protected by SRM. The syntax of the Get-SrmProtectedVM
function is as follows:
Get-SrmProtectedVM [[-Name] <String>] [-State {Ready |
FailedOver | PartiallyRecovered | Recovering | Recovered |
Testing | Shadowing}] [-PeerState {Ready | FailedOver |
PartiallyRecovered | Recovering | Recovered | Testing |
Shadowing}] [-ConfiguredOnly] [-UnconfiguredOnly]
[-ProtectionGroup <SrmProtectionGroup[]>] [-RecoveryPlan
<SrmRecoveryPlan[]>] [-ProtectionGroupName <String>]
[-SrmServer <SrmServer>] [<CommonParameters>]
The Get-SrmProtectedVM
function has no required parameters. You can use the parameters of the Get-SrmProtectedVM
function to filter for specific virtual machines by name, state, configuration, protection group, recovery plan, or SRM server.
In the following example, we will retrieve...