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

Automatic Deployment of .app File Using AL-Go for GitHub in Business Central

(8) ShareShare
ReportReport
Posted on by 113
I am currently using AL-Go for GitHub to automate the CI/CD process for a Business Central extension. The pipeline successfully generates the .app file and stores it in the artifacts. However, the deployment to the Business Central SaaS environment is not occurring automatically.
I would like to know whether automatic deployment of the .app file to a Business Central SaaS environment is supported by AL-Go, or if I might be missing a configuration step.
Could you please clarify whether this functionality is available, and if so, guide me on how to enable it correctly?
I have the same question (0)
  • Verified answer
    Jeffrey Bulanadi Profile Picture
    8,585 on at
    Automatic Deployment of .app File Using AL-Go for GitHub in Business Central

    Hi Yash,

    You're absolutely right, AL-Go for GitHub supports automatic deployment of .app files to BC SaaS environments, but it requires a few key configuration steps to activate.

    Here’s what to check:

    • By default, AL-Go generates the .app file and stores it in GitHub artifacts, but deployment only occurs if a target environment is registered and the correct secrets are configured.
    • To enable automatic deployment:
      • Define your environment in .github/AL-Go-Settings.json using "EnvironmentType": "SaaS"
      • Add an authContext secret for that environment in GitHub (or Azure Key Vault)
      • This includes clientId, clientSecret, tenantId, and optionally environmentName
        • Ensure the environment name matches what’s defined in your BC Admin Center
    • You can also override the default deployment behavior by creating a custom script like DeployToSaaS.ps1 in the .github folder. This gives you full control over how and when deployment occurs.
    • Once configured, AL-Go will automatically deploy the .app file to the specified SaaS environment after a successful build, unless gated by a manual release or approval step.


    Helpful references:

    Overview of AL-Go – Microsoft Docs
    Settings and Deployment Scenarios – Freddy Kristiansen
    Getting Started with AL-Go – DeepWiki
    Do-it-yourself CI/CD with AL-Go – Yzhums PDF
    AL-Go GitHub Repository – Microsoft

     

    If you find this helpful, feel free to mark this as the suggested or verified answer.

    Cheers
    Jeffrey

  • Suggested answer
    Kamal Khakhkhar Profile Picture
    1,202 on at
    Automatic Deployment of .app File Using AL-Go for GitHub in Business Central
    Hii there, 
    as per microsoft documentation you can check some of point.
     
     
    as else you can get the same kind of reference from Chat GPT as per Other Member is suggested.
     
    if you found answer Mark it asnwered.
     
    Thank You.
    Kamal Khakhkhar
  • Verified answer
    YUN ZHU Profile Picture
    93,793 Super User 2025 Season 2 on at
    Automatic Deployment of .app File Using AL-Go for GitHub in Business Central
    Hi, hope the following helps.
    Thanks.
    ZHU
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,099 Super User 2025 Season 2 on at
    Automatic Deployment of .app File Using AL-Go for GitHub in Business Central
    Yes, AL-Go for GitHub does support automatic deployment to Business Central SaaS – but it requires the correct setup in your repository configuration.
     
    🔧 Here’s what to check:
     
    1. Set "deployToEnvironment" to true in the settings.json file in your .github/AL-Go folder.
     
     
    2. Ensure the environmentName and appPublishingMethod (e.g., PublishAndInstall) are defined correctly.
     
     
    3. Make sure your secrets are configured in GitHub:
     
    AZURE_CREDENTIALS for authentication.
     
    BC_AUTHCONTEXT or BC_ENVIRONMENT depending on your method.
     
     
     
     
    📄 Official Microsoft setup guide for AL-Go deployments
     
     
     
    If deployment still doesn’t trigger, check your workflow logs (deploy.yaml) for skipped steps or permission errors.
     
    ✅ Mark this as the verified answer if it helps!
     
     

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,163

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,908

#3
YUN ZHU Profile Picture

YUN ZHU 1,878 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans