How to - Publish a single app to Business Central OnPrem with PowerShell

From time to time i end up in the situation where i need to deploy a app manually to a on prem environment. This is usally not the case because we are using pipelines to deploy to our customers.

But if i need to i always forgot what are the commands i need to use in wich sequence. At some point i created a simple script that installs a app and uninstalls the previous version (without any dependency checks or logic).


Now all i have to do is setting the right ServerInstance and appPath and run the script.

I know that this script could be much better and you could make it with parameter etc.. but i dont want it to because now it is simple and does the job and if you need fancy stuff you probably should publish using a pipeline.

You can find the Source Code of the script here: https://github.com/JohnnyUndercover/PowerShellScripts/blob/main/PublishSingleNAVApp.ps1

Kommentare

Beliebte Posts aus diesem Blog

HowTo - Set up a development environment for BusinessCentralApps

How to - Find or Check NAVServerConfiguration using Out-GridView