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

SQL

Query status:
1
2
use AXDB;
select * from dbo.SQLSYSTEMVARIABLES where PARM = 'CONFIGURATIONMODE';
Enable maintenance mode:
1
2
use AXDB;
update SQLSYSTEMVARIABLES SET VALUE = 1 where PARM = 'CONFIGURATIONMODE';
Restart IIS Express/IIS and do the required steps like enable/disable configuration keys.

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
Enable maintenance mode:
1
Enable-D365MaintenanceMode
Disable maintenance mode:
1
Disable-D365MaintenanceMode

References Link :

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

Popular posts from this blog

Advanced & Auto Bank Reconciliation in Dynamics 365 Finance

Disable editing of specific financial dimensions on form -Microsoft Dynamics Finance and operations(D365FO)