d365collaborative / d365fo.tools

Tools used for Dynamics 365 Finance and Operations
MIT License
246 stars 101 forks source link

🩹 align Enable/Disable-D365MaintenanceMode with documentation based on environment type #586

Closed FH-Inway closed 2 years ago

FH-Inway commented 2 years ago

Discussed in https://github.com/d365collaborative/d365fo.tools/discussions/585

The cmdlets Enable-D365MaintenanceMode and Disable-D365MaintenanceMode currently use Microsoft.Dynamics.AX.Deployment.Setup.exe to manage the maintenance mode of the environment. Microsoft documentation says that it should only be used on VHD based environments, while for cloud hosted environments, a SQL script should be used.

The cmdlets already use the SQL script as fallback in case the command is not executed with admin privileges. The fallback check should also include a check for the environment type.

FH-Inway commented 2 years ago

PR #589

Splaxi commented 2 years ago

Coming with 0.6.70