Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Backup » How to Install Azure Backup Agent
  • install python 3 and pip
    How to upgrade and downgrade PIP on Windows Windows
  • backupvssnapshot
    Virtual Machine Snapshot vs Backup Version Control System
  • GitVulfix456zgfbn
    Git Vulnerability: Git for Windows uninstaller is vulnerable to DLL hijacking when run under the SYSTEM user account Version Control System
  • email
    How to monitor Windows Server backup via PowerShell Windows Server
  • Azure DevOps Server
    How to Install Azure DevOps Server 2022 Automation
  • Slide1
    Enable Exploit Protection feature on Windows using the Windows Security App, Microsoft Endpoint Configuration Manager, and Group Policy Windows
  • Data drive is locked by BitLocker and not OS drive Fastboot Option
    Fast Boot Options: Fix specific Drive issue with BitLocker [MBAM] Windows
  • Configure Data Deduplication on Windows Server
    Video on how to Configure Data Deduplication on Windows Server Windows Server

How to Install Azure Backup Agent

Posted on 27/12/202327/12/2023 Imoh Etuk By Imoh Etuk No Comments on How to Install Azure Backup Agent
Azure-Backup-1

In this post, I show you how to install Azure Backup Agent on your on-premises machine and use it to back up the machine to the Azure Cloud. Azure Backup uses the MARS agent to back up files, folders, and system states from on-premises machines and Azure VMs. You can take the backup for your Azure VM with VM Settings and store the backup in the Azure Recovery Services vault. Please see how to secure a Web Server on a Windows VM in Azure using TLS/SSL Certificates Saved in Azure Key Vault, and how to secure a Web Server on a Windows VM in Azure using TLS/SSL Certificates Saved in Azure Key Vault.

The MARS agent, also known as the Microsoft Azure Recovery Services (MARS) agent, is a software tool used to back up data from on-premises Windows machines and Azure VMs to a Recovery Services vault in Azure.

Azure Backup requires an Azure Recovery Services Vault for the storage of backup data in Azure using the Azure Backup Agent setup on the on-premises machine. There are various ways to back up your files; you can set up Norton Cloud Backup on Windows. Check out the Virtual Machine Snapshot vs Backup post to learn about VM snapshots and backups. You can also set up Veeam Backup for Microsoft Azure.

Azure Recovery Services Vault is a centralized management service in Azure that acts as a storage container for backup data and recovery points created from various Azure services and on-premises sources. 

Why an Azure Backup Agent?

With Azure Backup Agent, you can back up specific files and folders or entire volumes. You can also back up the entire system state of your machine. This gives you granular control over what gets protected. The MARS agent seamlessly integrates with Azure Backup, making it easy to manage your backups and restore data.

Install Azure Backup Agent

To install Azure Backup Agent and initiate your first backup to Azure, you need to carry out the following steps:

Step 1: Create Azure Recovery Services Vault

All the backups will be stored in the Recovery Services Vault. So, the first resource to set up is the Recovery Services Vault. Kindly refer to one of my previous guides on backing up Azure VM with VM Settings to learn how to create a Recovery Services Vault.

Next, modify the storage replication from geo-redundant storage (GRS) to locally redundant storage (LRS) to reduce Azure storage costs.

To do so, from the Recovery Services vault you created, locate Properties -> Backup Configuration -> Updates -> Select Locally redundant storage and click on Save.

1-Modiy-storage-replication-1
Modifying Storage Replication

Step 2: Download and Install the MARS agent

In this step, you download and install the MARS agent on the on-premise machine to set up the backup. To do so, from the properties tab of the Recovery Services vault, locate the download under Recovery Services, or you can download it from here.

2-Download-MARS-Agent
Downloading MARs Agent

Step 3: Prepare Backup Infrastructure

Locate backup under the “Getting Started” tab

2-Select-where-your-workloads-is-running
Preparing Backup Infrastructure

Select On-Premises as where your workloads are running, and select files and folders as the workloads you want to backup.

Next, click on Prepare Infrastructure:

3-Prepare-your-Infrastructure
Prepare Infrastructure

On the Prepare Infrastructure page, download the vault credentials if you have not already done so, but if you have already downloaded the agent, check “Already downloaded.”

4-download-vault-credentials
Vault Credentials Download page
Note, you will need the vault credentials file above for server registration later in this demonstration. It also set to expire after 10 days. 

As shown in the screenshot above, we can browse the jobs page, and we can also browse the alerts page to set up email notifications.

We will come back to the steps above. For now, let’s run the MARS agent installation on our on-premises machine.

Step 4: Install the MARS Agent on the On-Premises Machine

From the download folder of your on-premises machine, double-click on the MARS Agent you downloaded earlier. Leave everything as default and click on Next to continue.

5-MARSAgentInstallation
Installing MARS Agent on the On-premises Machine

On the proxy configuration page, leave everything as default and click on Next.

6-Proxy-Configuration
Proxy Configuration

On the Microsoft Update Opt-In page, specify if you want to use Microsoft Update or not. Here, I selected that I do not want to use Microsoft Update.

7-Microsoft-Update-Opt-In-1
Microsoft Update Opt-In

Proceed to the installation page and click on Install.

8-Installation-Page
MARS Agent Installation

As soon as you click on Install, the installation process will begin. Grab a cup of coffee and wait for it to finish.

9-Installation-in-progress
MARS Agent Installation in Progress

Proceed to register your backup vault by clicking on “Proceed to Registration.”

10-Proceed-to-Registration
Proceed to Registration

Step 5: Register Server

As soon as you proceed to register your server, you will be taken to an interface similar to the one below:

11-Vault-Identification-Page-1
Vault Identification Page

From the screen above, select the credentials file you downloaded, and then select Next.

12-Vault-Credentials-Applied
Vault Credentials Applied

The next step requires that you generate a passphrase.

Note: The best practice is to store your passphrase securely in the Azure Key Vault.

If you have configured your key vault to store a passphrase, enter the key vault URL as shown below. For the sake of this demo, we will not store passphrase in the Azure Key Vault.

13-Generate-a-Passphrase
Generate Passphrase

Here, I store the passphrase locally.

14-Manually-store-passphrase
Storing Passphrase

In the server registration screen, wait for it to complete.

15-Server-Registration-Screen
Server registration is in Progress

Once it is complete, click on Close, leaving the “Launch Microsoft Azure Recovery Services Agent” dialog box checked. This enables you to launch the agent as soon as you click on Close.

16-Server-Registration-completed
Server registration is complete.
Note you must configure and schedule backup options before your server can be backed up. 

Step 6: Configure and Schedule Backup Options

When the MARS Agent opens up, click on “Schedule Backup.”

17-Configuring-backup-options
Scheduling backup

On the Getting Started screen, click Next to proceed.

1-Scheduling-backup
Getting started with a backup schedule

Select a backup item. To select a backup item, click on Add Items, select C:\ drive, and then click OK.

2-Select-Items-to-Backup
Select a backup item

The screenshot below shows that a backup item has been selected. Click next to continue.

3-Backup-Item-selected
Backup Item Selected

Specify a backup schedule. As shown below, I specify the backup schedule as Week, set the timing at midnight, and select Monday – Friday.

4-Specify-backup-schedule
Specify backup schedule

Click on Next to continue.

Configure a retention policy. As shown below, the backup data will be retained for 104 weeks, 60 months, and 10 years. This policy is the default policy, and I will leave it as is.

5-Configure-Retention-policy
Retention policy

Configure the initial backup type. Here, I chose online and clicked on Next.

6-Choose-the-initial-backup
Choose initial backup

On confirmation, click Finish

7-Confirmation-page
Confirmation page

Take your first backup.

9-Take-your-first-backup
Back-Up Now

Configure a retention backup until the date you wish.

10-Retain-Backup-Till
Configure backup retention

Confirmation

11-Confirm-Backup
Backup now

Backup in Progress

12-backup-progress
Backing up Item

Check Azure Portal to verify the backup item

13-Check-for-your-backup-item
Verifying backup item

Clicking on Azure Backup Agent takes you to the status of your last backup. As shown below, the first backup we took was successful.

14-Backup-successful
The first backup succeeded

Navigate to Backup > Prepare infrastructure > Browse the jobs page to view backup jobs.

15-Backup-job
Backup Jobs

Step 7: Configure the Backup Email Notifications

As mentioned previously in Step 3 above, you can configure an email alert to stay informed whenever a backup is successful.

To do so, from the prepare infrastructure page, click on the “browse alerts page.”

4-Recovery-Services-Agent-1
Configuring Backup Alerts

Click on Configure Notifications to continue to the screen to configure the notifications.

16-configure-email-notifications
Configure Alert notifications

On the Configure Notifications screen, set the Email Notifications radio button to On. Enter the email addresses you would like to be notified in the recipients’ field. Choose when to notify, select the alert severity level, and then click on Save.

17-configure-email-notifications2
Configuring Alert Notification Settings

The alert configuration is successful, as shown below.

18-Email-Notification-configured-successfully
Alert configuration is successful

Step 8: Clean up resources to avoid incurring Azure charges

Run az group delete --name <Resource_Group_Name> --no-wait to delete the resource group that holds the Recovery Services Vault.

Note you won't be able to delete that Resource Group if the Recovery Services Vault is still in use. 

I hope you found this guide on how to install Azure Backup Agent useful. Please feel free to leave a comment below.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift, Backup, Windows, Windows Server Tags:Azure, Windows 11

Post navigation

Previous Post: How to Take a Scrolling Screenshot on Windows 11
Next Post: How to create blue screen using the Not my Fault tool from Sysinternals

Related Posts

  • xxxxxx
    How to move the Taskbar to a second screen in Windows Windows
  • fhgj
    Resolve DISM unspecified error when removing preinstalled packages(Error code 15601) Windows Server
  • Backup for Microsoft 365 and Azure
    Veeam Backup Deployment options for Microsoft 365 Data AWS/Azure/OpenShift
  • VeeamOn 2023 Miami
    Why you should attend VeeamOn 2023 Backup
  • the Execute permission was denied
    Fix An error has occurred during report processing (rsProcessingAborted) Oracle/MSSQL/MySQL
  • VeeamIgnite2022
    Veeam at Microsoft Ignite 2022 from 12-14 October Backup

More Related Articles

xxxxxx How to move the Taskbar to a second screen in Windows Windows
fhgj Resolve DISM unspecified error when removing preinstalled packages(Error code 15601) Windows Server
Backup for Microsoft 365 and Azure Veeam Backup Deployment options for Microsoft 365 Data AWS/Azure/OpenShift
VeeamOn 2023 Miami Why you should attend VeeamOn 2023 Backup
the Execute permission was denied Fix An error has occurred during report processing (rsProcessingAborted) Oracle/MSSQL/MySQL
VeeamIgnite2022 Veeam at Microsoft Ignite 2022 from 12-14 October Backup

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • install python 3 and pip
    How to upgrade and downgrade PIP on Windows Windows
  • backupvssnapshot
    Virtual Machine Snapshot vs Backup Version Control System
  • GitVulfix456zgfbn
    Git Vulnerability: Git for Windows uninstaller is vulnerable to DLL hijacking when run under the SYSTEM user account Version Control System
  • email
    How to monitor Windows Server backup via PowerShell Windows Server
  • Azure DevOps Server
    How to Install Azure DevOps Server 2022 Automation
  • Slide1
    Enable Exploit Protection feature on Windows using the Windows Security App, Microsoft Endpoint Configuration Manager, and Group Policy Windows
  • Data drive is locked by BitLocker and not OS drive Fastboot Option
    Fast Boot Options: Fix specific Drive issue with BitLocker [MBAM] Windows
  • Configure Data Deduplication on Windows Server
    Video on how to Configure Data Deduplication on Windows Server Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.