Online vs On-Premises Features

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 11 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Understanding Business Central: Online vs. On-Premises Architecture

Introduction: Why Architecture Matters in Business Central

When you begin working with Microsoft Dynamics 365 Business Central, one of the first and most critical decisions you will face is choosing between the Online (SaaS) version and the On-Premises version. While both versions share a common codebase and offer the same core business functionality—such as financial management, supply chain tracking, and project accounting—the underlying architecture, management responsibilities, and integration capabilities differ significantly. Understanding these differences is not just a technical exercise; it is a fundamental business decision that dictates how your organization will manage security, updates, data sovereignty, and long-term maintenance costs.

In this lesson, we will dissect the architecture of Business Central, focusing specifically on the divergence between the cloud-based Online model and the locally hosted On-Premises model. We will explore how these architectural choices impact your day-to-day operations, the way you customize the system, and how you handle data accessibility. By the end of this guide, you will have a clear, practical understanding of how these two deployment models function, allowing you to make informed decisions for your organization or your clients.


Not read yet

The Core Architecture: Shared Foundations

Before diving into the differences, it is important to acknowledge that Business Central is built on a unified technology stack. Regardless of how you deploy it, the application logic is written in AL (Application Language), and the platform relies on the same core services for data handling and user interface rendering. This shared foundation means that much of your knowledge regarding business processes—such as how to post a sales order or reconcile a bank account—remains identical regardless of the deployment path.

However, the "plumbing" that supports these features changes drastically depending on whether Microsoft manages the environment for you or if your internal IT team handles the server infrastructure. In the Online version, Microsoft abstracts the server, database, and operating system layers away from you. In the On-Premises version, you retain full control over these layers, which provides flexibility but also introduces significant overhead.


Not read yet

Business Central Online (SaaS)

Business Central Online is a software-as-a-service (SaaS) offering. In this architecture, Microsoft hosts the entire application stack in its Azure data centers. You do not need to worry about server hardware, operating system patches, SQL Server tuning, or disaster recovery planning, as these are all managed by Microsoft as part of the service agreement.

Key Characteristics of the Online Model

  • Automatic Updates: Microsoft pushes major updates twice a year and minor updates monthly. This ensures that all users are always on the most recent, secure version of the software.
  • Managed Infrastructure: You are provided with an environment URL. Behind the scenes, Microsoft manages the load balancing, database scaling, and high availability.
  • Isolated Environments: Each tenant is logically isolated from others. You can create multiple environments (e.g., Production and Sandbox) within your tenant to test changes before deploying them to your live users.
  • Integrated Security: Authentication is handled through Microsoft Entra ID (formerly Azure Active Directory), providing single sign-on (SSO) capabilities across the Microsoft 365 ecosystem.

Callout: The Shared Responsibility Model In the Online model, the responsibility for system health is split. Microsoft is responsible for the platform, the database availability, and the underlying infrastructure. You are responsible for the business data, the configuration of the system, the user permissions, and the quality of any extensions you choose to install. This is a critical distinction because while you lose control over the server, you gain massive efficiency in maintenance.

Practical Implications for Online Users

Because you do not have direct access to the SQL Server or the server operating system, you cannot run custom scripts directly against the database. Any integration must be performed through the provided APIs (OData or REST) or via extensions written in AL. This architecture forces a "clean" approach to customization, preventing the common pitfalls of direct database modification that often led to upgrade failures in older versions of the product.


Not read yet

Business Central On-Premises

Business Central On-Premises is the traditional deployment model where you install the Business Central server, the web client, and the SQL Server database on your own hardware or in your own private cloud virtual machines. This gives you total control over every aspect of the environment. You decide when to apply updates, which versions of the operating system to run, and how to configure the database indexing.

Key Characteristics of the On-Premises Model

  • Manual Upgrades: You are responsible for planning and executing the upgrade process. This can be complex, especially if you have significant customizations that need to be migrated and re-tested.
  • Full System Access: You have direct access to the SQL Server database. This allows for advanced reporting using tools like SQL Server Reporting Services (SSRS) or direct data extraction via T-SQL, which is not possible in the Online version.
  • Network Control: You can host the system within your internal network, behind your own firewalls, and control exactly how users connect to the application.
  • Version Flexibility: You can stay on an older version of the product if your business requires it, though this comes with the trade-off of missing out on new features and security patches.

Note: While On-Premises gives you control, it also carries the burden of "technical debt." If you do not perform regular upgrades, your system will eventually become incompatible with modern web browsers, office integrations, or third-party services.


Not read yet

Comparative Analysis: Online vs. On-Premises

To help visualize the differences, consider the following table regarding system management and architecture:

Feature Business Central Online (SaaS) Business Central On-Premises
Hosting Microsoft Azure Customer/Partner Infrastructure
Updates Automated by Microsoft Managed by Customer/Partner
SQL Access Not available Full access
Customization Extensions (AL) only Extensions (AL) + limited legacy code
Integration APIs (Web Services) APIs + Direct SQL/File access
Scalability Automated Manual (requires hardware planning)
Authentication Entra ID (Azure AD) Windows Auth, Entra ID, etc.

Technical Implementation: The Role of AL Extensions

Regardless of the deployment model, the primary way to customize Business Central is through AL extensions. This is a significant shift from the past, where developers could modify the base code of the ERP. Today, whether you are in the cloud or on-premises, you must build "side-by-side" extensions.

How an Extension Works

An extension is a package of code that interacts with the base application through defined "hooks" called Events. Instead of changing the standard logic, your code listens for an event (e.g., "OnAfterPostSalesOrder") and executes your custom logic at that moment.

Here is a simple example of an AL extension that adds a custom field to a customer card:

tableextension 50100 CustomerExtension extends Customer
{
    fields
    {
        field(50101; "Favorite Color"; Text[30])
        {
            DataClassification = ToBeClassified;
        }
    }
}

Why This Matters for Architecture

In the Online model, this code is compiled and deployed through the Business Central Admin Center. Because the environment is locked down, the compiler ensures that your code follows strict rules, preventing you from writing "bad" code that could crash the server. In the On-Premises model, you have more freedom to bypass these checks, but doing so often creates "upgrade traps." If you modify the core code rather than using extensions, you will find it nearly impossible to upgrade your system to a newer version of Business Central later.


Not read yet

Common Pitfalls and How to Avoid Them

1. Underestimating the Cost of On-Premises

A common mistake is assuming that On-Premises is cheaper because you "already own the servers." In reality, the total cost of ownership (TCO) for On-Premises is often higher when you account for electricity, hardware maintenance, security patching, SQL Server licensing, and the labor required to manage the environment.

How to avoid: Perform a thorough TCO analysis that includes the staff hours required for database backups, disaster recovery testing, and manual software upgrades.

2. Over-Customizing the System

Because On-Premises allows for direct SQL access and legacy customization, organizations often build complex, proprietary integrations that are tightly coupled to the database schema. When a new version of Business Central is released, these integrations break, leading to "upgrade paralysis."

How to avoid: Always treat the Business Central database as a "black box." Use the provided APIs for all integrations, even if you are on-premises. This ensures that if you ever decide to move to the cloud, your integrations will continue to work without modification.

3. Ignoring the Modern Lifecycle

Some organizations stay on older versions of Business Central (or Dynamics NAV) for years, fearing the disruption of an upgrade. This creates a security risk and prevents the business from using modern features like AI-driven forecasting or improved mobile experiences.

How to avoid: Adopt a "continuous update" mindset. Even if you are on-premises, treat the software as a living system. Budget for at least one major version upgrade per year to keep the system current.


Not read yet

Step-by-Step: Deploying a Customization

Whether you are working in a sandbox for Online or a dev server for On-Premises, the process for deploying a change is consistent. This is a huge advantage of the modern architecture.

  1. Develop in VS Code: Use Visual Studio Code with the AL Language extension.
  2. Define your manifest: Create an app.json file that defines your extension's identity and dependencies.
  3. Implement your logic: Write your AL code, focusing on using Events to extend existing functionality.
  4. Publish to Sandbox: Use the Launch.json file to point your development environment to your Business Central instance.
  5. Test: Validate that your extension behaves correctly without affecting core business processes.
  6. Deploy to Production: Upload the .app file to the Business Central Admin Center (Online) or the Extension Management page (On-Premises).

Tip: Always use a Sandbox environment for testing. Never develop or debug directly against your production database. Even if you are on-premises, creating a separate "development" instance of the Business Central server is a best practice to protect your live data.


Not read yet

Integration Architecture: Connecting to the Outside World

One of the most frequent tasks in Business Central is integrating with external systems, such as e-commerce platforms, CRMs, or payroll systems. Your choice of architecture impacts how these integrations are built.

The Online Approach: APIs and Webhooks

In the Online version, you rely exclusively on Web Services. Business Central exposes OData and REST APIs that allow external systems to read and write data. For real-time updates, you can use Webhooks, which allow Business Central to "push" a notification to an external URL whenever a record is created or modified.

The On-Premises Approach: Direct Data Access

On-Premises users often fall into the trap of using direct SQL access. While you can query the SQL tables directly to get data for a report, this is dangerous. If you change a value in the database without going through the Business Central application logic, you bypass all the validation rules, which can lead to data corruption that is extremely difficult to fix.

Best Practice: Even if you have the power to query the database directly, do not do it for write operations. Treat the Business Central application layer as the only gatekeeper for your data.


Not read yet

Security Considerations

Security is a fundamental pillar of the Business Central architecture.

  • Online: Security is managed through Microsoft Entra ID. You can enforce Multi-Factor Authentication (MFA), Conditional Access policies, and IP restrictions. Microsoft handles the physical security of the data centers and the encryption of data at rest and in transit.
  • On-Premises: You are responsible for the entire security stack. You must manage the firewall, the server OS security, the SQL Server access controls, and the encryption of the databases. You are also responsible for ensuring that the server is physically secure and that access logs are monitored.

Callout: Compliance and Sovereignty Many organizations choose On-Premises because they are in highly regulated industries or regions where data must reside within specific geographic boundaries or on hardware they physically control. While Microsoft offers data residency options for the Online version, some specific legal requirements may still necessitate an On-Premises deployment. Always consult with your legal and compliance teams before choosing a deployment model based on data sovereignty requirements.


Not read yet

Managing Updates: The Lifecycle Perspective

The most significant operational difference between the two models is the update lifecycle.

The Online Update Cycle

Microsoft provides a predictable update schedule. You receive notification of upcoming major updates, and you have a "preview" window where you can test your extensions in a sandbox environment. If your extensions are incompatible, you have time to fix them before the production environment is updated. This ensures that the system is always evolving without the high-risk, high-stress "big bang" upgrades that characterized the legacy ERP world.

The On-Premises Update Cycle

In the On-Premises world, updates are a project. You must download the cumulative update, test it against your custom code, verify that your third-party ISV (Independent Software Vendor) solutions are compatible, and then schedule downtime to apply the update to your servers. This process is often delayed, leading to organizations running on versions that are years behind.


Not read yet

Summary of Key Takeaways

To conclude this module, here are the essential points you should remember when navigating the architecture of Business Central:

  1. Shared Foundation: Business Central Online and On-Premises share the same AL language and core application logic, making the transition between the two more manageable than in previous versions of Dynamics NAV.
  2. SaaS Efficiency: The Online model shifts the burden of infrastructure, security, and maintenance to Microsoft, allowing your team to focus on business value rather than server management.
  3. On-Premises Control: The On-Premises model provides full control over the environment and database, but it comes with a high overhead for maintenance, security, and upgrade management.
  4. Extension-First Development: Regardless of the model, always use AL extensions. Avoid modifying the base application code, as this will lead to significant technical debt and upgrade failures.
  5. Avoid Direct SQL Modification: Even when you have the ability to access the SQL database directly in the On-Premises model, never use it to bypass the application logic. This preserves data integrity and keeps your options open for future cloud migration.
  6. Continuous Upgrading: Whether you host it yourself or use the cloud, treat Business Central as a system that requires regular updates. Staying current is the best way to ensure security and access to the latest features.
  7. Data Sovereignty: While cloud options are becoming more flexible, always verify your specific regulatory requirements regarding data residency, as this is often the deciding factor for choosing On-Premises over the cloud.

By understanding these architectural nuances, you are better equipped to guide your organization toward a solution that aligns with its technical capabilities, its business goals, and its long-term strategy. Whether you choose the managed path of the cloud or the hands-on control of on-premises, the key to success in Business Central is maintaining a clean, extensible, and well-managed environment.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.