Install / Upgrade AL extension from Server A -> Server B (using script)

idonav
Member Posts: 31
Hi,
I have a build server (SERVER A below) that compiles and builds my AL code, though, I would like to further automate this by deploying the created .app file to a separate remote server (SERVER B below).
Can someone point me in the right direction of where to look? So basically (Assume that the below servers can talk to each other).
SERVER A: Code is built. Should be automatically deployed to SERVER B using a script.
SERVER B: Runs NAV. Standard three tier setup.
I have no issues writing a script that installs / upgrades an AL .app running on SERVER B, eg the server running nav, though I want to push my code from SERVER A to SERVER B (C, D, E, F, G, etc).
Would be great if someone could point me in the right direction.
Similar question:
https://github.com/Microsoft/AL/issues/2734 (Not regarding upgrading an app though)
I have a build server (SERVER A below) that compiles and builds my AL code, though, I would like to further automate this by deploying the created .app file to a separate remote server (SERVER B below).
Can someone point me in the right direction of where to look? So basically (Assume that the below servers can talk to each other).
SERVER A: Code is built. Should be automatically deployed to SERVER B using a script.
SERVER B: Runs NAV. Standard three tier setup.
I have no issues writing a script that installs / upgrades an AL .app running on SERVER B, eg the server running nav, though I want to push my code from SERVER A to SERVER B (C, D, E, F, G, etc).
Would be great if someone could point me in the right direction.
Similar question:
https://github.com/Microsoft/AL/issues/2734 (Not regarding upgrading an app though)
0
Answers
-
Firstly, I don't have any experience (yet) on building AL extensions, but I found this that shows how to publish extensions from nav admin shell:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-how-publish-and-install-an-extension-v2
And this:
https://docs.microsoft.com/en-us/dynamics-nav/how-to--publish-and-install-an-extension
I hope it can help you.0 -
Unfortunately, that does not solve the problem since it requires you to be on the actual server running nav. Thank you anyhow!
A new version of navcontainerhelper has been released, and it partly covers the issue, https://github.com/microsoft/navcontainerhelper/blob/master/AppHandling/Publish-NavContainerApp.ps1
I've refactored the script to use it for my purpose, (eg have a look at the useDevEndpoint and you'll understand). But that only covers the first installation, upgrading an app and running upgrade codeunits does not seem to work, the only option as I see it is to recreate it completely. Eg not suitable for production environments, making ut "useless" from a CI/CD perspective.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions