Package deployment in Dynamics 365 F&O On-Prem instance using CMD
Shayan Arshi
Microsoft Dynamics AX 365 F&O | AX 2012 | PowerApps | Azure DevOps| SQL Server | Blogger | Associate Architect at Qatar Free Zone | XSystems LTD
Hello Devs,
In this blog, I will show how we can deploy package in Dynamics 365 F&O in On-Prem instance.
Prerequisites:
Note : "AFPRunBookId-runbook" is the book title in my case, You have to set as per your case.
The process can be divided in below steps,
Step # 1:?
Download package and Unzip the package(Don't forget to unblock it before extracting, Right click and check unblock).
Step # 2:
Rename the VM name from the file in?DefaultTopologyData.xml(VM name could be found on My PC properties).
Step # 3:
We need to execute below series of command.?
Note :?In my case the I was using C Drive
1) The folder in which the package is placed, it should be non user folder and there should be no space within title of the folder (All folders that are in file path)
Example : C/User/Download (Will result in error, User folder error)
C/Program files/Package (Will result in error, space within path).
Series of CMD commands:
You should rename the RunbookFile?
1) Check the available list of Runbook
C:\DP2>AXUpdateInstaller.exe list
2)?
C:\DP2>AXUpdateInstaller.exe generate -runbookid="AFPRunBookId-runbook" -topologyfile="DefaultTopologyData.xml" -servicemodelfile="DefaultServiceModelData.xml" -runbookfile="AFPRunBookId-runbook.xml"
Note : "AFPRunBookId-runbook" is the book title in my case, You have to set as per your case.
3)?
C:\DP2>AXUpdateInstaller.exe import -runbookfile=AFPRunBookId-runbook.xml
Note : "AFPRunBookId-runbook" is the book title in my case, You have to set as per your case.
4)?
C:\DP2>AXUpdateInstaller.exe execute -runbookid=AFPRunBookId-runbook.xml
5)
C:\DP2>AXUpdateInstaller.exe execute -runbookid=AFPRunBookId-runbook
There would be list of steps that will be completed once the step 5 command will be executed.?
Hope you will find this blog helpful!
Looking forward for any parallel approach recommendations in the comments.
Junior Consultant INFRA at YASOOB Consulting Private Limited.
2 个月useful blog and i find it very informative.....
Microsoft Dynamics Functional Consultant | MCT | Data Analysis| Power BI | SQL | Python
2 年Tatenda NgorimaHuggins Mafigu
Technical Consultant ERP | Microsoft Dynamics 365 FO| Ax 2012 | Microsoft dynamics 365 supply chain| Systems Limited. ([email protected])
2 年Vip blogger