Skip to main content
Post a question

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

Deploy commerce to the same environment as existing FO instance....is to possible?

Posted on 18 Nov 2021 12:32:46 by 485

Hi all, 

Like mentioned in header, should I choose the clean Sandbox deployment for Commerce (demo purposes) or is it possible to - somehow - add to the existing D365FO sandbox environment. And by sandbox I mean tier-2 environment. 

Plan is not to install evaluation one-box environment, but to use the commerce for longer lasting demo purposes. Hopefully this clarifies 

  • SergeyP Profile Picture
    SergeyP 2,928 on 24 Nov 2021 at 18:40:05
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    Cloud hosted eCommerce can be setup via LCS by following Deploy a new e-commerce tenant.

    eCommerceSetup.png

    If you want to setup eCommerce on the Dev VM then follow Set up a development environment. Doing so involves having Retail Server deployed locally on the Dev VM and it could be deployed by using both modes (mentioned here and here) - IIS and Self Hosted (note that Self-Hosted scale unit dev experience for eCommerce is supported starting 10.0.23). With Self Hosted however, there are limitations (obviously they will be present since Self Host flavor cuts/mocks a lot), for instance, payment flow doesn't work yet.

    If you will want to use self-hosted RS with eCommerce then some additional changes might be needed in addition to what is mentioned in the above documentation:

    1. Set MSDyn365Commerce_LOCAL_BASE_URL=true in the .env file

    2. Update RS's CORS setting to accept the RS's Url: Open the file C:\Program Files\Microsoft Dynamics 365\10.0\Commerce Scale Unit\Microsoft\RetailServerSelfHosted\Microsoft.Dynamics.Retail.RetailServerSelfHost.AspNetCore.dll.config in any editor, locate there AllowedOrigins and append the url, including correct port number, corresponding to your locally deployed eCommerce, so after your modifications that key's value should be similar (see highlighted changes) to:

    <add key="AllowedOrigins" value="usnconeboxax1pos.cloud.onebox.dynamics.com;https:/.../usnconeboxax1ecom.cloud.onebox.dynamics.com;https://localhost:4000" />

  • vishy Profile Picture
    vishy 85 on 24 Nov 2021 at 01:12:03
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    Sergey,

    How about e-Commerce website. Is that something we can deploy to a cloud hosted environment?

    Thanks,

    Vishy

  • SergeyP Profile Picture
    SergeyP 2,928 on 23 Nov 2021 at 22:03:23
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    If "Commerce" means Scale Unit, including Retail Server, Cloud POS, Async Client, then you can deploy them to your existing VM, there are 2 ways to do that - by leveraging:

    1. GitHub based SDK Scale Unit sample

    2. Commerce Scale Unit installer directly.

  • vishy Profile Picture
    vishy 85 on 19 Nov 2021 at 15:04:48
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    Just to add, If you are looking to also test/demo e-commerce functionality of commerce then you will have to deploy an azure hosted sandbox. The cloud hosted sandbox does not allow you to deploy additional commerce scale units or e-commerce website.

  • huijij Profile Picture
    huijij 19,811 on 19 Nov 2021 at 08:00:19
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    Thanks for your feedback.

  • migi111 Profile Picture
    migi111 485 on 19 Nov 2021 at 07:43:00
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    I think we will deploy completely separate instance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans