Enable/disable D365 maintenance mode- Tier 1 & Higher Versions - Microsoft Dynamics Finance and operations
Tier 1 :
There are the following ways to enable/disable maintenance mode on DEV/could hosted boxes:
Posted by : Hariharasudan Kandaswamy
Posted by : Hariharasudan Kandaswamy
SQL
Query status:
1 2 | use AXDB; select * from dbo.SQLSYSTEMVARIABLES where PARM = 'CONFIGURATIONMODE' ; |
1 2 | use AXDB; update SQLSYSTEMVARIABLES SET VALUE = 1 where PARM = 'CONFIGURATIONMODE' ; |
if required, Execute DB sync
Disable maintenance mode:
1 2 | use AXDB; update SQLSYSTEMVARIABLES SET VALUE = 0 where PARM = 'CONFIGURATIONMODE' ; |
CMD
Open command prompt as administrator.
Enable maintenance mode (replace **axdbadmin_from_lcs** value):
1 | K:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir J:\AosService\PackagesLocalDirectory --bindir J:\AosService\PackagesLocalDirectory\Bin --sqlserver . --sqldatabase axdb --sqluser axdbadmin --sqlpwd **axdbadmin_from_lcs** --setupmode maintenancemode --isinmaintenancemode true |
Disable maintenance mode (replace **axdbadmin_from_lcs** value):
1 | K:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir J:\AosService\PackagesLocalDirectory --bindir J:\AosService\PackagesLocalDirectory\Bin --sqlserver . --sqldatabase axdb --sqluser axdbadmin --sqlpwd **axdbadmin_from_lcs** --setupmode maintenancemode --isinmaintenancemode false |
D365FO.Tools
Open PowerShell as Administrator
Installation of d365fo tools:
1 | Install-Module -Name d365fo.tools |
Query status:
1 | Get-D365MaintenanceMode |
1 | Enable-D365MaintenanceMode |
1 | Disable-D365MaintenanceMode |
List of all d365fo tools commands:
References Author : Max
Posted by : Hariharasudan Kandaswamy
Tier 2
Tier 2: Enable/disable D365 maintenance mode can be done from LCS:
Comments
Post a Comment