Upgrade D365O from previous Update to Current/future update (Eg: Update5 to Update8) On-premise Environment

Please refer the following below link or the steps given in this document. https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/deployment/install-deployable-package 1. Login into the SQL server as Run as administrator and execute the below command to delete the database log. Query to be executed: DB is AxDB

Use AxDB

select * from SysDatabaseLog; --To check whether the records exist
select * from DatabaseLog; --To check whether the records exist

delete from DatabaseLog; --To delete the record
delete from SysDatabaseLog; --to delete the record.
2. Download the platform update package as zip file from the below lcs>> Shared asset library. 

 3. Right click on the Zip file and choose properties Make sure that you check the unblock checkbox on general tab page as below s 

4. Extract the zip file and save it to nonuser folder such as C:\temp (or) C:\AxBuild. In my example I choose C:\AxBuild 

5. If you are updating from Update 5 to Update 8, you can use the file “DefaultTopologyData.xml” embedded in this document. Don’t forget to change the machine name as described below 

 6. After this edit the file “DefaultTopologyData.xml”, we need to change the machine name from localhost to your VM machine name as below 

 7. If you have used the topology file above, please skit to step 12. 

8. Run the command prompt as Right click-> Run as administrator 

9. Run the command powershell -Command "gci -recurse | Unblock-File" 

10. Change the path using the command to the extracted file location. In my example it is C:\AxBuild\LatestPlatformBinaryUpdates. Please see the below screenshot. Command: cd C:\AxBuild\LatestPlatformBinaryUpdates 

 11. Now the path will be changed to the given path. Now list down all the services available in the vm by below command to update the xml file in the extracted folder. Command: AXUpdateInstaller.exe list 

 12. The list will be as below or It may vary one VM to another 

 13. Need to update the file “DefaultTopologyData.xml” with all the services and file should look as below. 

14. Reboot the machine. 

15. Generate the runbook using the below command Command: AXUpdateInstaller.exe generate -runbookid="runbook" -topologyfile="DefaultTopologyData.xml" -servicemodelfile="DefaultServiceModelData.xml" -runbookfile="runbook.xml" 

 16. Import the runbook using the below command. Command: AXUpdateInstaller.exe import -runbookfile="runbook.xml" 

17. Execute the runbook using below command and enter. It will start executing step by step which will take around 1 hour or more that depends. Command: AXUpdateInstaller.exe execute -runbookid="runbook" 

18. Only in case you run into an error, write the number of the number of the step, restart your machine and try again by running this command as administrator from the update folder: powershell -Command "gci -recurse | Unblock-File" AXUpdateInstaller.exe execute -runbookid="runbook" -rerunstep= 

19. After the execution is completed, export runbook using the below command Command: AXUpdateInstaller.exe export -runbookid="runbook" -runbookfile="runbook.xml" 

20. Build the all models with enabling the database sync. 

21. Now the environment is ready to use.

No comments:

Post a Comment