Skip to main content

Notifications

Dynamics 365 Community / Forums / Commerce forum / Deploy commerce to the...
Commerce forum
Unanswered

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

editSubscribe (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 

Categories:
  • SergeyP Profile Picture
    SergeyP 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
    vishy 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
    SergeyP 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
    vishy 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
    huijij 19,799 on at
    RE: Deploy commerce to the same environment as existing FO instance....is to possible?

    Thanks for your feedback.

  • migi111 Profile Picture
    migi111 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.

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,375 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans