Microsoft Azure Recovery Services Agent (MARS) #1




We have typically 2 types of people:

The one,who already lost data

and the one,who will lose data!



Data breaches are a fixture on the nightly news. And each breach is worse than the last — from supermarkets to financial companies, from 100K affected to 10 Billion affected users.



For example: Aadhar – 1.1 billion users data breach Date: The breach was discovered in March 2018.


At this point, your reaction probably goes no further than a barely audible “meh.That's none of my business”  Sad, but true.🤣


In spite of that, when it comes to your company’s data, a breach isn’t the only way it can up and leave you. In fact, many large (and very notable) data loss stories have nothing to do with hackers and a subsequent data breach.

Here’s what we’ve got for you.



In this article we will show you how to solve some common problems with the Microsoft Azure Recovery Services (MARS) backup agent on servers and Windows devices.



MARS is a cloud backup solution that supports Windows Server and Windows client Operating systems. It is a great option if you need a simple, without confusion, offsite backup.

The MARS agent is used by Azure Backup to back up files, folders, and system state from on-premises machines and Azure VMs to a backup Recovery Services vault in Azure.



Connection to the Service


One of the frustrations I have experienced with the MARS agent is when opening the Management Console snap-in (MMC). MARS times out while connecting to the back-end services.
The easiest way to avoid this problem is to install the agent while logged into the server or PC with a local administrator account. Using Run as Administrator from a standard user’s desktop is creating the problem.


Once the agent is installed and you have registered the device with Azure, you can switch back to a standard, user-account desktop. At the end, you can open the console (Run as Administrator).


One thing to notice, you need local admin privileges to access the console. Make sure you follow best practices by removing admin privileges from users. Therefore, users will not have access to Azure Recovery Services on their devices.




Overcome space problem


On end-user devices, free space can be a particular issue. This is especially true on devices that use low-capacity, Solid-State Drives (SSDs).
It could be extremely useful to understand how the MARS agent backs up files.

The first time the MARS agent runs a backup job, it uses a Volume Shadow Copy Service (VSS) snapshot to create a Virtual Hard Disk (VHD) in a scratch folder, and stores Checksums for each block of data.


You can specify the location of the scratch folder as the agent is installed.

On the consecutive runs, modified files are isolated using USN Journal tracking and a new VHD is created with an updated file layout. New Checksums are compared against the initial checksums to identify changed blocks on files in the current backup set.


Any changed blocks are then sent to the Azure vault as blobs. Once the backup job is completed, the differential VHD is merged with the VHD that was created the first time the agent ran on the device, and the checksums in the scratch folder are updated.


To make the initial backup, you will need between 5 percent and 10 percent of free space on the volume. After the initial backup job has completed, the VHD expands and contracts as needed. If you face errors because of a lack of free space on the volume, gradually add folders to the backup set each time the backup runs.


If y