Microsoft Dynamics AX 2012 Build and Deployment

Rumman Ansari   2021-01-29   Student   Miscellaneous > AX-2012   910 Share

Steps for model store Build:

  1. Merge code using visual studio if necessary
  2. Rename software version and check in the code after changing the version code [Ex: Des and Des Roles]
  3. Clear synchronization log from AX side
  4. Force synchronization on DES roles if necessary otherwise normal synch
  5. Force synchronization on DES if necessary otherwise normal synch
  6. Process the pending synch log
  7. Stop AOS service
  8. Parallel compilation
  9. Start AOS
  10. Execute Full CIL
  11. Perform Data dictonary synchronization 
  12. Stop AOS
  13. Delete label files
  14. Start AOS
  15. Export modelstore

Steps for model store deployment:

  1. Send Outage mail for respective group members 
  2. Copy the AX ModeStore in local path or shared path
  3. Stop AX and MR Services
  4. Open AX Management shell
  5. Apply below code for deployment
  6. Delete XPPL folder
  7. Start AOS
  8. Delete AX Cache files (C:\Users\UserName\AppData\Local\Microsoft\Dynamics Ax)
  9. Start the AX AOS and MR Servies
  10. Generate AX Full CIL
  11. Perform AX DB  synchronization 
  12. Refresh AX AIF Services
  13. Deploy AX SSRS reports
  14. Perform sanity check
  15. Send Outage completion mail

 

Coding Steps for model store deployment:

  1. Check status
  2. Create tem schema
  3. Import modelstore to temp schema
  4. If ID confict happen excute this
  5. Apply Temp schema
  6. Drop Temp schema

Respective code for Modelstore deployment:

  1. Get -Service -Name "AOS60`$01"
  2. Initialize -AXModelStore -Server (Server_name) -Database (Database_Name) -SchemaName Temp
  3. Import -AXModelStore -Server (Server_name) -Database (Database_Name) -SchemaName Temp -File (File_path.axmodelstore) -NoPrompt -verbose
  4. Import -AXModelStore -Server (Server_name) -Database (Database_Name) -SchemaName Temp -File (File_path.axmodelstore) -IDConflict Overwrite -NoPrompt -verbose
  5. Import -AXModelStore -Server (Server_name) -Database (Database_Name) -Apply Temp -Details
  6. Initialize -AXModelStore -Server (Server_name) -Database (Database_Name) -Drop Temp -NoPrompt