dsccommunity / ExchangeDsc

This module contains DSC resources for deployment and configuration of Microsoft Exchange Server.
MIT License
80 stars 49 forks source link

xExchDatabaseAvailabilityGroup Should Check If Failover-Clustering Is Installed Before Modifying DAG Membership #154

Closed mhendric closed 7 years ago

mhendric commented 7 years ago

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

mhendric commented 7 years ago

I got this one.

mhendric commented 7 years ago

Resolved in https://github.com/PowerShell/xExchange/pull/183