Ereignisse
Power BI DataViz Weltmeisterschaften
14. Feb., 16 Uhr - 31. März, 16 Uhr
Mit 4 Chancen, ein Konferenzpaket zu gewinnen und es zum LIVE Grand Finale in Las Vegas zu machen
Weitere InformationenDieser Browser wird nicht mehr unterstützt.
Führen Sie ein Upgrade auf Microsoft Edge durch, um die neuesten Features, Sicherheitsupdates und den technischen Support zu nutzen.
This article walks you through the steps for using the command line to apply either a binary update or an application (AOT) deployable package that was created in your development or build environment.
Wichtig
For most types of environments, you can apply a deployable package to an environment directly from Microsoft Dynamics Lifecycle Services (LCS). For more information, see Apply updates to cloud environments. Therefore, this article applies primarily to environment types that don't support the application of updates via LCS. Examples include local development environments (downloadable virtual hard disks [VHDs]), multi-box development/test environments in Microsoft Azure (LCS Partner and trial projects), and build environments. However, you can also use this article any time that you want to install deployable packages by using the command line instead of LCS.
Hinweis
The steps listed below are for customization packages only. Do not use the devinstall parameter when running the Data Upgrade deployable package as part of an upgrade from Microsoft Dynamics AX 2012 to a finance and operations app.
An AOT deployable package is a package that contains customizations and extensions to your application. If you want to use the command line just to install an AOT deployable package on a development or demo environment, follow the instructions in this section. You can then skip the rest of this article.
On the virtual machine (VM), download the zip file for the deployable package. Make sure that the zip file is stored in a non-user folder.
Hinweis
After you download the zip file, right-click it, and then select Properties. Then, in the Properties dialog box, on the General tab, select Unblock to unlock the files.
Extract the files.
Open a Command Prompt window, and go to the folder where you extracted the deployable package.
Run the following command.
AXUpdateInstaller.exe devinstall
The devinstall option installs the AOT deployable package on the VM.
Hinweis
This command doesn't run database synchronization. You must run database synchronization from Microsoft Visual Studio after you install the deployable package.
In LCS, on the Environment page, select the name of a VM. Establish a Remote Desktop connection to the VM by using the user name and password that are provided on the Environment page.
On the VM, download the zip file for the deployable package from LCS. Make sure that the zip file is stored in a non-user folder.
Hinweis
After you download the zip file, right-click it, and then select Properties. Then, in the Properties dialog box, on the General tab, select Unblock to unlock the files.
Extract the files.
In the folder where you extracted the deployable package, find and open the file that is named DefaultTopologyData.xml. You must specify the VM name and the installed components in this file.
To specify the VM name, follow these steps:
To specify the installed components, follow these steps:
Open a Command Prompt window as an administrator.
Go to the extracted folder, and run the following command to see a list of all the components that are installed on the computer.
AXUpdateInstaller.exe list
Update the DefaultTopologyData.xml file with the list of components.
When you've finished specifying the VM name and the installed components, the DefaultTopologyData.xml file should resemble the following illustration.
Repeat steps 1 through 4 for every other VM that is listed on the Environment page.
Based on the topology information in the DefaultTopologyData.xml file, you must generate the runbook file that will provide step-by-step instructions for updating each VM.
On any VM, run the following command to generate the runbook.
AXUpdateInstaller.exe generate -runbookid=[runbookID] -topologyfile=[topologyFile] -servicemodelfile=[serviceModelFile] -runbookfile=[runbookFile]
Here is an explanation of the parameters that are used in this command:
[runbookID]– A parameter that is specified by the developer who applies the deployable package.
[topologyFile]– The path of the DefaultTopologyData.xml file.
[serviceModelFile]– The path of the DefaultServiceModelData.xml file.
[runbookFile]– The name of the runbook file to generate (for example, AOSRunbook.xml).
Example
AXUpdateInstaller.exe generate -runbookid="VAL200AA2BMEDIU-runbook" -topologyfile="DefaultTopologyData.xml" -servicemodelfile="DefaultServiceModelData.xml" -runbookfile="VAL200AA2BMEDIU-runbook.xml"
The runbook provides the sequence of steps that must be run to update the environment. The following illustration shows an example of a runbook file. Each step in a runbook is associated with an ID, a machine name, and step execution details.
On the first machine (VM) that is listed in the runbook file, follow these steps:
Import the runbook by running the following command.
AXUpdateInstaller.exe import -runbookfile=[runbookFile]
Example
AXUpdateInstaller.exe import -runbookfile="VAL200AA2BMEDIU-runbook.xml"
Verify the runbook.
AXUpdateInstaller.exe list
Run the runbook.
AXUpdateInstaller.exe execute -runbookid=[runbookID]
Example
AXUpdateInstaller.exe execute -runbookid="VAL200AA2BMEDIU-runbook"
AXUpdateInstaller updates the runbook file after each step is run on a VM. The runbook also logs information about each step.
For manual steps, follow the instructions, and then run the following command to mark the step as completed in the runbook.
AXUpdateInstaller.exe execute -runbookID=[runbookID] -setstepcomplete=[stepID]
Example
AXUpdateInstaller.exe execute -runbookid="VAL200AA2BMEDIU-runbook" -setstepcomplete=2
If errors occur during any step, debug the script or the instructions in the step, and update accordingly.
Export the runbook.
AXUpdateInstaller.exe export -runbookid=[runbookID] -runbookfile=[runbookFile]
Example
AXUpdateInstaller.exe export -runbookid="VAL200AA2BMEDIU-runbook" -runbookfile="VAL200AA2BMEDIU-runbook.xml"
Repeat step 1 on every other VM that is listed in the runbook file. For one-box environments, such as development, build, and demo environments, there is only one VM.
Run the following command to verify that the new updates are installed.
AXUpdateInstaller.exe list
View the runbook to see the completed steps. Here is an example of a runbook file where the steps have been completed.
After all the steps in the runbook are completed and you've exported the runbook, save the file outside the computer for future reference. For example, you might have to use the runbook file in these situations:
If any step in the runbook fails, you can rerun it by running the following command.
AXUpdateInstaller.exe execute -runbookid=[runbookID] -rerunstep=[stepID]
To prevent version mismatch or downgrade, or installation of the same deployable package, run the following command.
AXUpdateInstaller.exe execute -runbookid=[runbook ID] -versioncheck=true
To verify database synchronization, in the aosservice\scripts\ folder, find and open the dbsync.error.txt file, and look for any errors.
Ereignisse
Power BI DataViz Weltmeisterschaften
14. Feb., 16 Uhr - 31. März, 16 Uhr
Mit 4 Chancen, ein Konferenzpaket zu gewinnen und es zum LIVE Grand Finale in Las Vegas zu machen
Weitere InformationenTraining
Zertifizierung
Microsoft Certified: Dynamics 365: Finance and Operations Apps Developer Associate - Certifications
Sie implementieren und erweitern Finanz- und Betriebs-Apps in Microsoft Dynamics 365.
Dokumentation
Troubleshoot package application issues - Finance & Operations | Dynamics 365
Learn about troubleshooting information for issues that might occur when you apply packages on Tier 1 or Tier 2 through Tier 5 environments.
Apply the latest platform update to environments - Finance & Operations | Dynamics 365
Learn about how to apply the latest platform update to your finance and operations environment and update packages.
Uninstall a package - Finance & Operations | Dynamics 365
Learn how to remove a deployable package from your environment, including prerequisites and a step-by-step process of uninstalling packages.