Microsoft Dynamics AX 2012 R3 Retail Application Training -

Microsoft Dynamics AX 2012 R3 Retail Application-Installation and Configuration

Locus IT ServicesMicrosoft Dynamics AX 2012 R3 Retail Application-Installation and Configuration

Lesson 4: Execute PowerShell Scripts to Deploy and Configure Online Store

Execute PowerShell Scripts to Deploy and Configure Online Store

Execute PowerShell Scripts to Deploy and Configure Online Store : After you configure all of the required parameters in the oob-settings.xml file, you are ready to create and configure the online store by using PowerShell scripts. By default, the PowerShell scripts described in this section are deployed by Microsoft Dynamics AX Setup to the following directory on the SharePoint server: C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Online Channel\tools.

Lesson Objectives

The objective is to list the PowerShell scripts that are used to create and configure the online store.

InstallPrereqs-SPFarm.ps1 PowerShell Script

This script performs all the tasks required to set up and prepare the online store on SharePoint 2013.

To execute the InstallPrereqs-SPFarm.ps1 script, run the following steps:

  1. Open the SharePoint 2013 Management Shell with elevated privileges (open the Shell as Administrator).
  2. Navigate to the directory containing the PowerShell scripts, C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Online Channel\tools
  3. Execute the following command: .\InstallPrereqs-SPFarm.ps1 oob-topology.xml oob-settings.xml

Generate-WSP.ps1 PowerShell Script

This script creates SharePoint solution packages (.wsp files) for your environment. The solution packages include properties such as connection strings, URLs, and ports from the oob-topology.xml and oob-settings.xml files. The solution packages also include binaries, images, and static web pages that were deployed by Microsoft Dynamics AX setup to the Retail Online storefront directory.

To execute the Generate-WSP.ps1 script, run the following steps:

  1. Open the SharePoint 2013 Management Shell with elevated privileges (open the Shell as Administrator).
  2. Navigate to the directory containing the PowerShell scripts, C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Online Channel\tools.
  3. Execute the following command: .\Generate-WSP.ps1 oob-topology.xml oob-settings.xml

Deploy-FarmSolutions.ps1 PowerShell Script

This script deploys the generated SharePoint solution packages, activates the SharePoint features on the corresponding sites, and executes any post-deployment tasks needed for setting up the store front.

To execute the Deploy-FarmSolutions.ps1 script, run the following steps:

  1. Open the SharePoint 2013 Management Shell with elevated privileges (open the Shell as Administrator).
  2. Navigate to the directory containing the PowerShell scripts, C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Online Channel\tools
  3. Execute the following command: .\Deploy-FarmSolutions.ps1 oob-topology.xml oob-settings.xml
Locus IT Project Management Office
What’s it?