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.
Hi Inge,
Ah perfect, thank you for your hints. that's worked.
Best Regards
On prem you can disable the "Enable Developer Service Endpoint" option" on the BC service.
Please refer to this documentation:
Hi Demiliani,
Thank you for your quick response, i forgot to say that our environment is on-premise version.
Best Regards
As said above, this is not possible on SaaS. You receive an error.
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
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.
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.
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?
Thanks a lot!
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.