Thursday 22 May 2014

Retail Server Installation and Configuration

Ax 2012 R3 comes with a new App -Modern POS , As per Technet :

Microsoft Dynamics AX 2012 R3 includes Modern POS, a point-of-sale app for PCs, tablets, and phones. Sales staff can process sales transactions, customer orders, and perform daily operations and inventory management with mobile devices anywhere in the store, as well as at PC-based registers.

M-POS is dependent upon Retail server for communication with StoreDB , While activating the M-POS ,we were getting the error  : MPOS can not be activated , error in communication with Server.


So we found there are several points which we need to take care while installing the Retail server ,
  • Don't Configure the Retail Server using setup , unmark the check box of configuration in setup.
  • Update the rs-setting.xml file , which can be found in location : "C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools"


  • Now configure the Retail Server using Powershell , you can use the below commands :
$Cred = @((New-Object
System.Management.Automation.PSCredential(‘domain\useraccount',(ConvertTo-SecureString
'password' -AsPlainText -Force))))


.\DeployRetailServer.ps1 -SettingsXmlFilePath .\rs-settings-updated.xml -TopologyXmlFilePath .\rs-topology-updated.xml -Credential $Cred -Authentication $Cred

Once you are done with configuration , launch IE with below URL :
http://<yourservername>:<portnumber of Retailserver>/<name of retailserver web site>/v1/$metadata ,

you should be able to see the meta data similar to 









Once this is done , you are good to go for MPOS installation and activation.


7 comments:

  1. Which group should this Retailserver user belong that this will work? I've got message --> "Assigned role is not allowed to perform this operation" while requesting this url directly from browser.

    ReplyDelete
  2. Not able to run the powershell cmdlet, simple the cmdlet if possible.
    I am facing the same issue as below:
    error : MPOS can not be activated , error in communication with Server.

    ReplyDelete
  3. This works without modifications on newest LCS AX2012R3 demo image when doing activation using this url http://ip_of_demoimage:35080/RetailServer/v1

    Activation must be done with same data (deviceId, register number) what is entered on MPOS Devices-table before.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Did anyone find a solution for this issue?

    ReplyDelete
  6. I was able to do it on a Contoso LCS demo VM for AX 2012 R3 CU8, where the Retail Server is already installed and running. So I didn't have to install it without configuring and then complete config via PowerShell.
    I just had to change the setting in rs-settings-updated.xml: ...AllowAnonynousMetaData... to True.
    Then this URL returned a large metadata XML.
    http://localhost:35080/Retailserver/v1/$metadata

    ReplyDelete