web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Production deployment of AL extension in On Prem Business Central.

(1) ShareShare
ReportReport
Posted on by 163
Hi All,

Greetings of the day.

I’ve been working on an extension for an on-premises version of Business Central and now need to deploy it to the production environment. However, I’ve noticed that the extension management menu in the on-premises version doesn't have the same options for uploading extensions as we have in the cloud-based version.

Screenshot of On Prem Business Central

As I am not very familiar with the on-premises deployment process, I would appreciate any guidance or steps you can share regarding the deployment. Additionally, if there are any precautions or best practices I should be aware of during the process, that would be incredibly helpful.

Thank you in advance for your support!

I have the same question (0)
  • Suggested answer
    Kamalkhakhkhar8 Profile Picture
    58 on at
    Production deployment of AL extension in On Prem Business Central.
    Hii there,
    In ON Prem version there is some changes in deployment. as per on prem you can not publish as PTE , you can add from VS code as dev. 
     
    as per cloud you need to update version of app before deploy. in On Prem you don't need to update version of your app(for advise please update the version and deploy in devops/git so you can have the source control) .
     
    in on prem it will not uninstall the dev extension as per cloud. 
     
    if you want to know more please let me know.
     
    if you found answer please mark it answered.
     
    Thank You.
    Kamal Khakhkhar
     
     
  • Suggested answer
    Gerardo Rentería García Profile Picture
    23,590 Most Valuable Professional on at
    Production deployment of AL extension in On Prem Business Central.

    Hi, good day
    I hope this can help you, and give you some hints.

    #msdyn365bc - How Do I Install New Version of Extension (on-Prem)?

    Best Regards
    Gerardo

  • SG-05091051-0 Profile Picture
    163 on at
    Production deployment of AL extension in On Prem Business Central.
    Hi Kamal

    Thanks for reply.

    I also conducted some research on this and found that I need to run a few PowerShell commands on the machine where Business Central is deployed.

    1. Publish-NAVApp -ServerInstance BProduction
     
    // This is used to bypass certificate. - Only useful when you do not have any certificate.
    2. X - Publish-NAVApp - ServerInstance BProduction - SkipVerification 

    3. Sync-NAVApp -ServerInstance BhavnaProduction -Name BProduction
    4. Install-NAVApp -ServerInstance BhavnaProduction -Name BProduction

    I want to understand the role of the certificate during deployment. Why is it required when deploying the code? Is it mandatory to have a certificate, or can I bypass this requirement by using the SkipVerification option?

    Please help me on this, Is it the right way of not ?

    If anyone else have some idea, please share with me.

    Thanks for help.

     
  • Suggested answer
    YUN ZHU Profile Picture
    93,317 Super User 2025 Season 2 on at
    Production deployment of AL extension in On Prem Business Central.
    No certificate is required, usually the following command can be used. Please note to replace the Instance name and app file path
    Publish-NAVApp -ServerInstance BC -Path "C:\ProgramData\NavContainerHelper\Extensions\BC1610424\my\Premium.app" -SkipVerification
     
    After successfully publishing, you can install it in BC UI.
     
    Other commands that may be used are:
    UNPublish-NAVApp -ServerInstance BC -Name 'Premium' -Version 1.0.0.4
    Sync-NAVApp -ServerInstance BC -Name 'Premium' -Mode Clean
     
    Hope this helps.
    Thanks
    ZHU
     
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,523 Super User 2025 Season 2 on at
    Production deployment of AL extension in On Prem Business Central.
  • SG-05091051-0 Profile Picture
    163 on at
    Production deployment of AL extension in On Prem Business Central.

    Hi All,

    Thank you all so much for your responses.

    Just to confirm one  thing - I need to run these PowerShell commands on the client’s system where their on-premises Business Central server is deployed.

    Commands - Open Powershell as admin and run the below commands.

    1. Publish-NAVApp -ServerInstance BProduction -Path ".app file path" -SkipVerification


    2. Sync-NAVApp -ServerInstance BProduction -Name BhvanaOnPremCode


    3. Install-NAVApp -ServerInstance BProduction -Name BhvanaOnPremCode  

    Please let me know if any correction required.

    Thanks for help.  

  • Suggested answer
    Ramesh Kumar Profile Picture
    7,523 Super User 2025 Season 2 on at
    Production deployment of AL extension in On Prem Business Central.
     
    If this helped you, please check the box Does this answer your question?
  • Suggested answer
    Mohana Yadav Profile Picture
    60,975 Super User 2025 Season 2 on at
    Production deployment of AL extension in On Prem Business Central.
    Install-NAVApp works when we are installing first time.
    If the app is already installed then we have to use Start-NavAppDataUpgrade -ServerInstance Servicename -Version AppNewVersion -Name AppName  
    and unpublish the old app version using
    Unpublish-NavApp -ServerInstance Servicename -Version AppOldVersion -Name AppName

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,762

#2
Sumit Singh Profile Picture

Sumit Singh 2,573

#3
YUN ZHU Profile Picture

YUN ZHU 1,930 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans