Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Business Central forum

Can I deploy my core developments directly to the Production Instance?

(0) ShareShare
ReportReport
Posted on by 116

Previous question subject was: "Does Docker Sandbox Container support Deployments to Production Instance somehow?"

Hello, I am mostly new to the Development things on Business Central, although I'd eagerly like to know the possibility of Deploying my Developments to the Production Instance directly / indirectly (somehow), which I've carried out on the Sandbox Container Provided by BC itself. 

For the record, my SB Container is locally hosted.

Microsoft & Docker says, "Develop things only for Testing & Evaluation purposes. Don't use on Production Instance". I completely understand the use of SB Container and Online Sandbox, but if I need to alter something in the Core or BC how can I do it? The actual question is how do I publish/deploy it even if I am able to do so?

Please correct me if I am following a wrong path. I'm just a newbie roaming around this new product. 

Thanks, and please forgive my area of research.

  • Suggested answer
    Darens Vans Profile Picture
    90 on at
    RE: Can I deploy my core developments directly to the Production Instance?

    Hi Inge,

    Ah perfect, thank you for your hints. that's worked.

    Best Regards

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,025 Moderator on at
    RE: Can I deploy my core developments directly to the Production Instance?

    On prem you can disable the "Enable Developer Service Endpoint" option" on the BC service.

    Please refer to this documentation:

    docs.microsoft.com/.../configure-server-instance

  • Darens Vans Profile Picture
    90 on at
    RE: Can I deploy my core developments directly to the Production Instance?

    Hi Demiliani,

    Thank you for your quick response, i forgot to say that our environment is on-premise version.

    Best Regards

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Can I deploy my core developments directly to the Production Instance?

    As said above, this is not possible on SaaS. You receive an error.

  • Darens Vans Profile Picture
    90 on at
    RE: Can I deploy my core developments directly to the Production Instance?

    Hi All,

    sorry for raising up these issue again, i have one question regarding how to prevent directly deployment to production environment, can BC has setup to prevent this? so developer cannot use vs code directly instead of using package.

    Thanks

  • Dilanka H. Profile Picture
    116 on at
    RE: Can I deploy my core developments directly to the Production Instance?

    Thank you for the quick response in the most precise way. Now all my doubts are cleared with perfection. It's time to try these practically.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Can I deploy my core developments directly to the Production Instance?

    It’s all correct except step 4. You have to sign the app only if you want to go to AppSource. For a per-tenant Extension (directly deployed to your customer’s production tenant) you don’t need to sign it, just a direct upload of the app package.

  • Dilanka H. Profile Picture
    116 on at
    RE: Can I deploy my core developments directly to the Production Instance?

    Hi Stefano,

    Honestly, I am thankful for you, for giving a stable resolution to my biggest doubt with these deployment-related things.

    Additionally, could you please correct me on the following process (as per my knowledge and research done on the internet) regarding Production Instance Extension Deployment?

    1. I need to develop Extensions on Cloud/Local sandbox with VSCode.
    2. Test the development on Sandbox.
    3. Export the development as APP package.
    4. Sign the exported package with either a self-signed certificate or paid signing solution.
    5. Import the package to Production Instance as an Extension.
    6. Deploy!

    Thanks a lot!

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Can I deploy my core developments directly to the Production Instance?

    No you cannot directly deploy and debug from VS Code to a production tenant. Deployment from VS Code is supported only on a local sandbox or a cloud sandbox.

    For a production environment you need to load the .app file from Extension Management page and (actually) you cannot debug on it.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans