Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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
    2,928 on at
    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
    85 on at
    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
    2,928 on at
    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
    85 on at
    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
    19,811 on at
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    Thanks for your feedback.

  • migi111 Profile Picture
    485 on at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans