Stop-VMReplication
Stop-VMReplication
Cancels an ongoing virtual machine resynchronization.
Sintaxe
Parameter Set: VMName
Stop-VMReplication [-VMName] <String[]> [-ComputerName <String[]> ] [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: VMObject
Stop-VMReplication [-VM] <VirtualMachine[]> [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: VMReplication
Stop-VMReplication [-VMReplication] <VMReplication[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descrição detalhada
The Stop-VMReplication cmdlet cancels an ongoing virtual machine resynchronization.
Parâmetros
-ComputerName<String[]>
Specifies one or more Hyper-V hosts on which the ongoing virtual machine resynchronization is to be stopped. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly.
Aliases |
nenhuma |
Necessário? |
false |
Posição? |
named |
Valor padrão |
. |
Aceitar entrada do pipeline? |
false |
Aceitar caracteres curinga? |
false |
-PassThru
Specifies that an object is to be passed through to the pipeline representing the virtual machine on which the ongoing virtual machine resynchronization is to be stopped.
Aliases |
nenhuma |
Necessário? |
false |
Posição? |
named |
Valor padrão |
nenhuma |
Aceitar entrada do pipeline? |
false |
Aceitar caracteres curinga? |
false |
-ReplicationRelationshipType<VMReplicationRelationshipType>
Specifies the replication relationship type of the virtual machine. Specify whether the replication relationship is a simple primary to replica or is an extended replication chain. The cmdlet cancels the ongoing resynchronization of the virtual machines that have the replication type that you specify.
Aliases |
Relationship |
Necessário? |
false |
Posição? |
named |
Valor padrão |
nenhuma |
Aceitar entrada do pipeline? |
false |
Aceitar caracteres curinga? |
false |
-VM<VirtualMachine[]>
Specifies the virtual machine whose resychronization is to be stopped.
Aliases |
nenhuma |
Necessário? |
true |
Posição? |
1 |
Valor padrão |
nenhuma |
Aceitar entrada do pipeline? |
True (ByValue) |
Aceitar caracteres curinga? |
false |
-VMName<String[]>
Specifies the name of the virtual machine whose resynchronization is to be stopped.
Aliases |
nenhuma |
Necessário? |
true |
Posição? |
1 |
Valor padrão |
nenhuma |
Aceitar entrada do pipeline? |
True (ByValue) |
Aceitar caracteres curinga? |
false |
-VMReplication<VMReplication[]>
Specifies the resynchronization to be stopped.
Aliases |
nenhuma |
Necessário? |
true |
Posição? |
1 |
Valor padrão |
nenhuma |
Aceitar entrada do pipeline? |
True (ByValue) |
Aceitar caracteres curinga? |
false |
-Confirm
Solicita que você confirme antes de executar o cmdlet.
Necessário? |
false |
Posição? |
named |
Valor padrão |
false |
Aceitar entrada do pipeline? |
false |
Aceitar caracteres curinga? |
false |
-WhatIf
Mostra o que aconteceria se o cmdlet fosse executado. O cmdlet não é executado.
Necessário? |
false |
Posição? |
named |
Valor padrão |
false |
Aceitar entrada do pipeline? |
false |
Aceitar caracteres curinga? |
false |
<CommonParameters>
Esse cmdlet dá suporte a parâmetros comuns: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Para obter mais informações, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
O tipo de entrada é o tipo dos objetos que você pode canalizar para o cmdlet.
Saídas
O tipo de saída é o tipo de objeto emitido pelo cmdlet.
- None by default; Microsoft.HyperV.PowerShell.VirtualMachine if –PassThru is specified.
Exemplos
Example 1
Stops all ongoing replications of virtual machines on the local Hyper-V server.
PS C:\> Stop-VMReplication *