Cannot accept replication request from primary server '%5' for virtual machine '%1' as the virtual machine does not have ...

Cannot accept replication request from primary server '%5' for virtual machine '%1' as the virtual machine does not have the AllowedPrimaryServer property set. %3 (%4). 
To authorize the specified primary server to replicate to this server, run the following Powershell cmdlet.
If the virtual machine is already set up for replication:
Get-VmReplicationAuthorizationEntry -AllowedPrimaryServer '%5' | Set-VmReplication '%1'
If the virtual machine is not set up for replication yet:
Get-VmReplicationAuthorizationEntry -AllowedPrimaryServer '%5' | Enable-VmReplication '%1' -asReplica
(Virtual Machine ID %2).