How to update AX 2012 Enterprise Portal in a multi-server web farm

在Sharepoint Farm环境中配置EP后维护和普通的配置有点不同,如果更新发布的问题可以参考下面这篇文章。

In this post we talk about how to UPDATE your Enterprise Portal (EP) deployed on a multi-server SharePoint 2013 web farm.

 

Pre-requisite:

When you browse to the load balanced URL it will be resolved to the IP address of the load balancer which will route the request to a Web Frontend Server. If you try to deploy changes to EP without editing the hosts file, then the web application URL will be resolved to the load balancer instead of the local machine and the deployment will fail.

Steps:

Edit the hosts file located under %systemroot%\system32\drivers\etc (default location: c:\windows\system32\drivers\etc).

Add a line with local IP address mapped to host header on each server.

 

Example:

The web farm consists of 3 servers and load balanced URL is EP.contoso.com:

Central Admin server with IP 10.10.50.101

WFE1 with IP 10.10.50.102

WFE2 with IP 10.10.50.103

Then:

– On Central admin server add this line in hosts file:

10.10.50.101 EP.contoso.com

 

– On WFE1 server add this line in hosts file:

10.10.50.102 EP.contoso.com

 

– On WFE2 server add this line in hosts file:

10.10.50.103 EP.contoso.com

 

If the web farm is load balanced and the load balancer was configured after EP was installed, then be sure the host files on each server in the farm has been updated with the local IP address mapped to the Host Header before you deploy changes to EP.

 

When updating Enterprise Portal, then we need to take into account changes to the following components:

– Web modules

– Webpage definitions

– Web controls

– Proxies

– Images

– Static files – (rarely updated)

 

In order to deploy changes to AX 2012 Enterprise Portal in a farm with more than one web server, then you can use one of the following options:

 1. Deploy using AxUpdatePortal

On each web server run AxUpdatePortal jobs depending on what objects have been changed and needs an update. Ref. https://msdn.microsoft.com/en-us/library/dd261467.aspx

AxUpdatePortal –updatewebcomponent –treenodepath “Web\Web Files\Web Controls” –websiteurl http://EP.contoso.com – this will update all web controls

AxUpdatePortal –updatewebcomponent –treenodepath “Web\Web Files\Static Files” –websiteurl http://EP.contoso.com – this will update all static files

AxUpdatePortal –proxies –websiteurl http://EP.contoso.com

AxUpdatePortal –images –websiteurl http://EP.contoso.com

AxUpdatePortal –updateall cannot be used on the WFE, only on CA, as it will try to update the page definitions which can only be done on the CA server.

 

2. Deploy using Publish-AXWebComponent

On each web server use Publish-AXWebComponent command from either the Microsoft Dynamics AX Management Shell or the Windows PowerShell console. Ref. https://technet.microsoft.com/en-us/library/jj720274.aspx

 

On Central Admin (CA) SharePoint Server:

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -AOTNodePathList “\Web\Web Modules” – this will deploy new modules and update page definitions

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -AOTNodePathList “\Web\Web Files\Web controls”

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -AOTNodePathList “\Web\Web Files\Static Files”

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” –Proxy

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -Image

 

On SharePoint Web Front-End (WFE):

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -AOTNodePathList “\Web\Web Files\Web controls”

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -AOTNodePathList “\Web\Web Files\Static Files”

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” –Proxy

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -Image

 

3. Deploy from AOT or Deployment form in AX

In hosts file on AOS change IP address to point to the web server you want to deploy to and then deploy from AOT or run deployment form in AX with update web application. To update the next web server then you need to change the IP to the next web server you want to deploy to.

For example, you can have one line for each web server in the host file, one that resolves to CA and one to each WFE. Comment out the server you are not updating.

Example entries in hosts file:

10.10.50.101 EP.contoso.com

#10.10.50.102 EP.contoso.com

#10.10.50.103 EP.contoso.com

 

4. Deploy using AX Setup

Use AX setup on each server and uncheck configure for SharePoint and create site – this will deploy static files and dll’s, similar to update web application in the deployment form (this will not deploy page definitions).

To update the CA server with page definitions use:

AxUpdatePortal –updatewebcomponent –treenodepath “\Web\Web Files\Page Definitions” –websiteurl http://EP.contoso.com

Or

Publish-AXWebComponent -WebSiteUrl “http://EP.contoso.com” -AOTNodePathList “\Web\Web Files\Page Definitions”

 

How to verify if the update was successful:
  • Web modules:
    New module will be added to navigation menu (tab page).

 

  • Webpage definitions:
    In Enterprise Portal document library (EP > Site Actions > View All Site Content > Document Libraries > Enterprise Portal).

 

  • Web controls:
    In ep folder (C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ep) on each web server node.

 

  • Proxies:
    Proxy folder (C:\inetpub\wwwroot\wss\VirtualDirectories\80\App_Code\Proxies) on each web server node.

 

  • Images:
    In …\ep\images on each web server node.

 

  • Static files:
    In …\ep\scripts on each web server node.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!
提供的源码资源涵盖了小程序应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!
提供的源码资源涵盖了Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值