zoukankan      html  css  js  c++  java
  • AX7: How to deploy a Package

    A. Using LCS services.
    B. Manual using command prompt.
    Here I’ll show using command prompt, as I found its better than LCS (After successfully deploy many packages J)
    Follow below steps,

    1. Create Deployment Package:
    Run VS as admin, Go to Dynamics AX menu. Select Create a deployment package as shown below.

    Choose your package from list and path to save this file

    Click on create.
    It will take few minutes to complete this process.
    2. Upload on LCS shared library:
    However, we are not using LCS in this demo, but it’s always a good practice to maintain all deployment package on LCS. You can use this library to deploy this package to any environment that is part of your project.
    Upload this file to LCS, shared asset library> S/w deployable package

    Click on + button, Fill the details, select the package

    Add file and, upload the same.

    After upload done, click on confirm.
    3. Open Other environment (RDP).
    4. Copy this package to this box (Download this package from LCS there. OR copy paste there).
    5. Now, first right click on zip file, unlock this. Expend it.
    Now run this command for all child folders, unlock this zip file using PowerShell command
    Get-ChildItem C:UsersaxlocaladminDownloads AXDeployablePackage_20160923_05_36_14-recurse | Unblock-File –Confirm

    6. Generate runbook for this package.
        a. Open command prompt as administrator
        b. Navigate to your package folder
        c. Run below command
    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:
          i. [runbookID] – A parameter that is specified by the developer who applies the deployable package
          ii. [topologyFile] – The path of the DefaultTopologyData.xml file
          iii. [serviceModelFile] – The path of the DefaultServiceModelData.xml file
          iv. [runbookFile] – The name of the runbook file to generate (for example, AOSRunbook.xml)
    Example
    AXUpdateInstaller.exe generate -runbookid=" AXDeployablePackage_20160923_05_36_14-runbook" -topologyfile="DefaultTopologyData.xml" -servicemodelfile="DefaultServiceModelData.xml" -runbookfile=" AXDeployablePackage_20160923_05_36_14-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.
    Sometimes runbook id will not generated correctly, so you have to manually update the same in runbook file. Simply copy your folder name and out it as runbook id in xml file.

    This process will generate a runbook xml file into package folder.
    7. Import the runbook by running the following command.
    AXUpdateInstaller.exe import -runbookfile=[runbookFile]
    Example
    AXUpdateInstaller.exe import -runbookfile=" AXDeployablePackage_20160923_05_36_14-runbook.xml"

    8. Verify the runbook.
    AXUpdateInstaller.exe list

    Execute the runbook.
    AXUpdateInstaller.exe execute -runbookid=[runbookID]
    Example
    AXUpdateInstaller.exe execute -runbookid=" AXDeployablePackage_20160923_05_36_14-runbook"
    Export the runbook.
    AXUpdateInstaller.exe export -runbookid=[runbookID] -runbookfile=[runbookFile]
    Example
    AXUpdateInstaller.exe export -runbookid="VAL200AA2BMEDIU-runbook" -runbookfile="VAL200AA2BMEDIU-runbook.xml"
    AXUpdateInstaller updates the runbook file after each step is run on a VM. The runbook also logs information about each step.

    Troubleshooting:
    1. Sometimes you will get some issue on execution, so it’s better to rename the package folder and use old name in runbook.
    For eg: If your package file name is like “AXDeployablePackage_20160923_05_36_14” Than you have to rename this folder as “AXDeployablePackage”. Now unlock this folder using PowerShell and try with further steps.
    2. For more detail check below links.
    https://ax.help.dynamics.com/en/wiki/installing-deployable-package-in-ax7/

  • 相关阅读:
    数论算法 剩余系相关 学习笔记 (基础回顾,(ex)CRT,(ex)lucas,(ex)BSGS,原根与指标入门,高次剩余,Miller_Rabin+Pollard_Rho)
    51Nod1123 X^A Mod B 数论 中国剩余定理 原根 BSGS
    BZOJ2219 数论之神 数论 中国剩余定理 原根 BSGS
    BZOJ3583 杰杰的女性朋友 矩阵
    BZOJ2821 作诗(Poetize) 主席树 bitset
    BZOJ2178 圆的面积并 计算几何 辛普森积分
    BZOJ1058 [ZJOI2007]报表统计 set
    BZOJ2480 Spoj3105 Mod 数论 扩展BSGS
    BZOJ1095 [ZJOI2007]Hide 捉迷藏 动态点分治 堆
    AtCoder Regular Contest 101 (ARC101) D
  • 原文地址:https://www.cnblogs.com/dingkui/p/6110059.html
Copyright © 2011-2022 走看看