Skip to main content

Notifications

Announcements

No record found.

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 144
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!

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 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
  • Suggested answer
    Ramesh Kumar Profile Picture
    Ramesh Kumar 233 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?
  • SG-05091051-0 Profile Picture
    SG-05091051-0 144 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
    Ramesh Kumar 233 on at
    Production deployment of AL extension in On Prem Business Central.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 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
     
  • SG-05091051-0 Profile Picture
    SG-05091051-0 144 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
    gdrenteria Profile Picture
    gdrenteria 12,338 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

  • Suggested answer
    Kamalkhakhkhar8 Profile Picture
    Kamalkhakhkhar8 43 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
     
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans