Thursday, January 9, 2020

Turn maintenance mode on and off in DevTest environment in Finance and Operations

If you need to enable/disable configuration keys, you will go to System administration> Setup> License configuration

You might see the following message:

This form is read-only unless the system is in the maintenance mode. Maintenance mode can be enabled in this environment by running maintenance job from LCS, or using Deployment.Setup tool locally

To turn the environment on to maintenance mode follow the steps below:
1. Establish an RDP connection to the developer machine
2. Run the command:

Command to turn maintenance mode on
K:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir K:\AosService\PackagesLocalDirectory --bindir K:\AosService\PackagesLocalDirectory\Bin --sqlserver . --sqldatabase axdb --sqluser axdbadmin --sqlpwd ********* --setupmode maintenancemode --isinmaintenancemode true

where ********* - SQL Server password that you can find in the LCS (see below)
  • Log in to LCS.
  • Go to Environment details page
  • Find DOMAIN ACCOUNTS section
  • Take the Password value for the axdbadmin User name and use this password in the command above
Command to reset IIS
Iisreset

Now you can enable/disable configuration keys as required.

To turn the environment off to maintenance mode follow the steps below:
1. Establish an RDP connection to the developer machine
2. Run the command:

Command to turn maintenance mode off:
K:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir K:\AosService\PackagesLocalDirectory --bindir K:\AosService\PackagesLocalDirectory\Bin --sqlserver . --sqldatabase axdb --sqluser axdbadmin --sqlpwd ********* --setupmode maintenancemode --isinmaintenancemode false

where ********* - SQL Server password that you can find in the LCS (as described above)

Command to reset IIS
Iisreset

No comments:

Post a Comment