Monday, October 17, 2022

D365 F&O Install a deployable package from command line / Apply the latest platform update to environments

 

Install a deployable package from the command line

Go To deployable package folder and Open command as administrator 


Or Open Command as administrator >> 

Then, change directory to get into the folder with the unzipped files. : 

cd C:\AOTBrowser_DeployablePackage



Finally enter the following command to install the package. 

AXUpdateInstaller.exe devinstall






This process could save multiple hours to complete.

The system will deploy the files in the packages to the correct locations. As well as run scripts to update the database.

You can view the Microsoft documentation for this process here.


To Apply the latest platform update to environments

Download the latest platform from LCS >> Asset library >> Software deployable package


  1. Download the platform update package (AXPlatformUpdate.zip) to your virtual machine (VM).

  2. Unzip the contents to a local directory.

  3. Depending on the type of environment that you're upgrading, open the PlatformUpdatePackages.Config file under \AOSService\Scripts, and change the MetaPackage value.

    • If you're upgrading a development or demo environment that contains source code, change the MetaPackage value to dynamicsax-meta-platform-development.
    • If you're upgrading a runtime environment, such as a tier-2 sandbox environment or another environment that doesn't contain source code, the default value, dynamicsax-meta-platform-runtime, is correct.

     Note

    Step 3 is not applicable when upgrading to Platform update 4 or later.

  4. Follow the instructions for installing a deployable package. See Install deployable packages from the command line.

  5. If you're working in a development environment, rebuild your application’s code.

AXUpdateInstaller.exe generate -runbookid="OneBoxDev" -topologyfile="DefaultTopologyData.xml" -servicemodelfile="DefaultServiceModelData.xml" -runbookfile="OneBoxDev-runbook.xml"

    AXUpdateInstaller.exe import -runbookfile=OneBoxDev-runbook.xml

    AXUpdateInstaller.exe execute -runbookid=OneBoxDev




No comments:

Post a Comment