Installing a deployable package in Dynamics 365 for Operations using command-line
Today we will be installing a deployable package using command line… this article is mostly for creating a condensed version for my own use… for a complete version please look at the link at the bottom of the page
- From the Dynamics Server (using RDP) log into https://lcs.dynamics.com and select the correct project.
- Goto Asset Library and download the package to D:\
- Goto Properties for the file and unblock it
- Unzip the file
NOTE: The folder where the files are unziped/stored must not contain spaces
- Edit the DefaultTopologyData.xml file to look like this (for a onebox environment):
<?xml version=”1.0″ encoding=”utf-8″?>
<TopologyData xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
<Name>AX topology</Name>
<MachineList>
<Machine>
<Name>localhost</Name>
<ServiceModelList>
<string>AOSService</string>
<string>ALMService</string>
<string>BIService</string>
<string>DevToolsService</string>
<string>DIXFService</string>
<string>DocumentRoutingAgent</string>
<string>MROneBox</string>
<string>PayrollTaxModule</string>
<string>PerfSDK</string>
<string>ReportingService</string>
<string>RetailCloudPos</string>
<string>RetailHQConfiguration</string>
<string>RetailSDK</string>
<string>RetailSelfService</string>
<string>RetailServer</string>
<string>RetailStorefront</string>
<string>SCMSelfService</string>
<!– DefaultTopologyData are only for dev vhd, which we only support AOS update–>
<!– Create a new topology data for your Cloud AX topology–>
</ServiceModelList>
</Machine>
</MachineList>
<BackupScript>
<FileName />
<Automated>false</Automated>
<Description>Please backup your environment now, set this step to complete once you finished backup</Description>
</BackupScript>
</TopologyData>
- Run these commands to install the file:
AXUpdateInstaller.exe generate -runbookid=name-runbook -topologyfile=DefaultTopologyData.xml -servicemodelfile=DevInstallServiceModelData.xml -runbookfile=name-runbook.xml AXUpdateInstaller.exe import -runbookfile="name-runbook.xml" AXUpdateInstaller.exe execute -runbookid="name-runbook"
Links: https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/deployment/install-deployable-package
