The xExchDatabaseAvailabilityGroup resource does not currently check if a server has the Failover-Clustering feature installed before trying to add a server to a DAG. We should add a check to ensure that the feature has an Install State of Installed before proceeding. If it's in a state of InstallPending, we should force a reboot. We also may want to add an option on the resource to install the Failover-Clustering feature automatically.
PRE INSTALLATION:
PS > Get-WindowsFeature fail*
Display Name Name Install State
[ ] Failover Clustering Failover-Clustering Available
True Yes SuccessRest... {Failover Clustering}
WARNING: You must restart this server to finish the installation process.
WARNING: Windows automatic updating is not enabled. To ensure that your newly-installed role or feature is
automatically updated, turn on Windows Update.
The xExchDatabaseAvailabilityGroup resource does not currently check if a server has the Failover-Clustering feature installed before trying to add a server to a DAG. We should add a check to ensure that the feature has an Install State of Installed before proceeding. If it's in a state of InstallPending, we should force a reboot. We also may want to add an option on the resource to install the Failover-Clustering feature automatically.
PRE INSTALLATION:
PS > Get-WindowsFeature fail*
Display Name Name Install State
[ ] Failover Clustering Failover-Clustering Available
PS > Get-WindowsFeature fail* | Install-WindowsFeature
Success Restart Needed Exit Code Feature Result
True Yes SuccessRest... {Failover Clustering} WARNING: You must restart this server to finish the installation process. WARNING: Windows automatic updating is not enabled. To ensure that your newly-installed role or feature is automatically updated, turn on Windows Update.
POST INSTALLTION, PRE REBOOT:
PS > Get-WindowsFeature fail*
Display Name Name Install State
[X] Failover Clustering Failover-Clustering InstallPending
POST REBOOT:
PS > Get-WindowsFeature fail*
Display Name Name Install State
[X] Failover Clustering Failover-Clustering Installed