Package deployment in Dynamics 365 F&O On-Prem instance using CMD

Package deployment in Dynamics 365 F&O On-Prem instance using CMD

Hello Devs,

In this blog, I will show how we can deploy package in Dynamics 365 F&O in On-Prem instance.

Prerequisites:

  • LCS login
  • VM Instance

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).


No alt text provided for this image



Step # 2:


Rename the VM name from the file in?DefaultTopologyData.xml(VM name could be found on My PC properties).

No alt text provided for this image





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.?

No alt text provided for this image

Hope you will find this blog helpful!

Looking forward for any parallel approach recommendations in the comments.

Ghulam Murtaza

Junior Consultant INFRA at YASOOB Consulting Private Limited.

2 个月

useful blog and i find it very informative.....

Alexio Simbarashe Pfumai

Microsoft Dynamics Functional Consultant | MCT | Data Analysis| Power BI | SQL | Python

2 年
Saud Khan

Technical Consultant ERP | Microsoft Dynamics 365 FO| Ax 2012 | Microsoft dynamics 365 supply chain| Systems Limited. ([email protected])

2 年

Vip blogger

要查看或添加评论,请登录

Shayan Arshi的更多文章

社区洞察

其他会员也浏览了