#1 Global Leader in Data Resilience

How to Upgrade the NATS Server Used by Veeam Backup for Microsoft 365

KB ID: 4742
Product: Veeam Backup for Microsoft 365 | 8 | 8.1
Published: 2025-06-19
Last Modified: 2025-07-01
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Purpose

This article provides information about upgrading the NATS Server used by Veeam Backup for Microsoft 365.
NATS Server Version Impact
It is recommended that customers use the latest supported version of NATS Server with Veeam Backup for Microsoft 365 to avoid any potential performance issues.

Solution

Before You Begin

Please note that the NATS Server software ensures communication between backup proxy servers that you group into a backup proxy pool. For this reason, all tasks within Veeam Backup for Microsoft 365 must be in a stopped state, and the Veeam services must be stopped, before making any changes to the NATS Server deployment.

Veeam-deploy vs Customer-deployed NATS Server

The upgrade documentation provided in this article is separated based on whether the NATS Server was deployed by the Veeam Backup for Microsoft 365 Installer or by the user. This separation is because when the NATS Server is deployed by the Veeam Backup for Microsoft 365 installer, its location, and deployment settings are known. In contrast, a customer-deployed NATS Server may have been installed using one of several different methods or operating systems (e.g., downloading a binary/executable, package manager, docker image, or compiled from source). Due to the high variability of how customers may have deployed NATS Server, only broad instructions on how to upgrade are available in this document, and customers are advised to follow the upgrade procedure from the NATS Server developers, relative to the method used to deploy it initially.

Part 1: Identify the Location of the NATS Server Deployment

This section will explain how to review the Veeam Backup for Microsoft 365 configuration to identify the location of the NATS Server.

On the Veeam Backup for Microsoft 365 Server, open C:\ProgramData\Veeam\Backup365\Proxy.xml, and Search for the entry ServerEndpoint Identity=.

  • If the ServerEndpoint Identity is the server itself, it is very likely a Veeam Backup for Microsoft 365 Installer Deployed NATS Server.
  • If the ServerEndpoint Identity is a different server, it is a Customer-deployed NATS Server.
Veeam Backup for Microsoft 365 Installer Deployed NAT Server

Default NATS Server Deployment Configuration Details

  • The nats-server service created by the Veeam Backup for Microsoft 365 installer includes in its Path to the executable both:
    • The path to the nats-server executable.
    • The path to the nats-server.conf configuration file.
  • The nats-server.conf configuration file contains
    • The folder path where jetstream should store information.
    • The authorization credentials that are required to connect to the NATS Server.
    • The path that nats-server should write its log file.

Part 2: Identify the Current NATS Server Version

Before attempting to upgrade the NATS Server, you must first identify if the currently installed version is lower than the supported version.

On the Veeam Backup for Microsoft 365 server, open an Administrative PowerShell Terminal and run the following command to output the nats-server service executable path:

sc.exe qc nats-server
Then, using the path to the nats-server.exe, execute it with the -v parameter to have it display its version.
&"<path-to-nats-server.exe>" -v
Get NATS version
In this example, the nats-server.exe output "v2.10.18"

With the local NATS Server version now known, compare it with the highest version of NATS Server supported for the version of Veeam Backup for Microsoft 365 installed to determine whether the NATS Server can be upgraded.

NATS Server supported by the current version of Veeam Backup for Microsoft 365

Part 3: Upgrading NATS Server

After determining which version of NATS Server is installed and reviewing the Veeam Backup for Microsoft 365 User Guide to determine if a newer version of NATS Server is supported, perform the following steps to upgrade the NATS Server deployment.

  1. Ensure that all backup jobs, backup copy jobs, and restore tasks are either completed, stopped, or disabled.
  2. On the primary Veeam Backup for Microsoft 365 server (aka controller) and all associated Proxies, stop the services associated with the software:
    • Veeam Backup for Microsoft 365 Server
      Get-Service Veeam.Archiver.Proxy | Stop-Service
      Get-Service Veeam.Archiver.Service | Stop-Service
      Get-Service nats-server | Stop-Service
      
    • Veeam Backup for Microsoft 365 Windows Proxy
      Get-Service Veeam.Archiver.Proxy | Stop-Service
      
    • Veeam Backup for Microsoft 365 Linux Proxy
      systemctl stop Veeam.Archiver.Proxy
      
  3. Download the latest compatible NATS Server zip package from: https://github.com/nats-io/nats-server/releases
  4. Copy the folder within the zip to C:\Program Files\NATS, placing it next to the existing deployed version's folder.
Copy
  1. Update the following command with the correct absolute path to the new nats-server.exe created in the previous step, then run the command in an Administrative Command Prompt.

    Note: This command must be run in a command prompt, not a PowerShell (PS) prompt.
    Command Prompt is used instead of PowerShell because the method used to escape the quote symbols varies by PowerShell version.
sc.exe config nats-server binPath="\"C:\Program Files\NATS\nats-server-v2.10.28-windows-amd64\nats-server.exe\" -c \"C:\ProgramData\NATS\nats-server.conf\""
Update the command before running it!
Service Update
Example
  1. Start the services that were stopped in Step 2.
Customer-deployed NATS Server

Upgrading NATS Server

Review the Veeam Backup for Microsoft 365 User Guide to determine if a newer version of the NATS Server is supported. If so, perform the following steps to upgrade the NATS Server deployment.

  1. Ensure that all backup jobs, backup copy jobs, and restore tasks are either completed, stopped, or disabled.
  2. Stop all Veeam Backup for Microsoft 365 related services:
    • On the controller host, stop:
      • Veeam Backup for Microsoft 365 Service
      • Veeam Backup for Microsoft 365 Proxy Service
    • On all associated backup proxies, stop:
      • Veeam Backup for Microsoft 365 Proxy Service
  3. Upgrade the NATS Server deployment.

    Notes:
    • If the NATS Server was run as a downloaded executable on a Windows machine, upgrading may be as simple as swapping the executable with the maximum version supported by Veeam Backup for Microsoft 365.
    • If the NATS Server was deployed on Linux using the native package manager, upgrading may be as simple as updating the package restrictions to set the new maximum version to match the one supported by Veeam Backup for Microsoft 365 and then upgrading packages using the package manager.
    • If the NATS Server was deployed as a Docker image, upgrading may be as simple as pulling the Docker image matching the version supported by Veeam Backup for Microsoft 365 and updating the container.
  4. Restart the service from Step 2 above.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.