Hyper-V 2016 Replica Windows Firewall Rule Monitor

Microsoft.Windows.HyperV.2016.ReplicaFirewallMonitor (UnitMonitor)

Monitors Hyper-V 2016 Replica Windows firewall rules configuration.
Note: This monitor is disabled by default. Please use overrides to enable it when necessary.

Knowledge Base article:

Summary

For replication to work successfully, an entry should be available in the Firewall, which allows traffic on the configured port.

Note: This monitor is disabled by default. Please use overrides to enable it when necessary.

Causes

The Windows Firewall rule to allow replication traffic to the Replica site has not been enabled.

Resolutions

If you are using Windows Firewall, then enable "Hyper-V Replica HTTPS Listener (TCP-In)" if you are using Kerberos based authentication, and/or "Hyper-V Replica HTTP Listener (TCP-In)" if you are using certificate based authentication.

Element properties:

TargetMicrosoft.Windows.HyperV.2016.ServerRole
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.HyperV.2016.ReplicaFirewallMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Hyper-V 2016 Replica Windows Firewall Rule(s) is disabled.
Hyper-V 2016 Replica Windows Firewall Rule(s) is disabled. These Windows firewall rules are as follows: "Hyper-V Replica HTTPS Listener (TCP-In)" and "Hyper-V Replica HTTP Listener (TCP-In)". Either Windows Firewall is not being used, or it is not configured properly.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.HyperV.2016.ReplicaFirewallMonitor" Accessibility="Public" Enabled="false" Target="HVDisc!Microsoft.Windows.HyperV.2016.ServerRole" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.HyperV.2016.ReplicaFirewallMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.HyperV.2016.ReplicaFirewallMonitor.Alert">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters/>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ReplicaFirewallRulesPresent" MonitorTypeStateID="HostHealthy" HealthState="Success"/>
<OperationalState ID="ReplicaFirewallRulesAbsent" MonitorTypeStateID="HostCritical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>86400</IntervalSeconds>
<TimeoutSeconds>30</TimeoutSeconds>
</Configuration>
</UnitMonitor>