Commvault with Azure Blob storage

Commvault Azure Blob storage is one of the most common enterprise backup designs you’ll meet in Azure. Commvault protects the servers, databases and VMs, and it writes the backup data into an Azure storage account that it treats as a cloud library, so Azure ends up holding the off-site copy, or sometimes the only copy.

Commvault is a paid product, so this lesson is a concept lesson with a simulated lab. You’ll learn the architecture, the Azure settings Commvault depends on and a troubleshooting checklist you can use at work. In the lab, the Azure CLI plays a stand-in “MediaAgent” that writes Commvault-style chunks to Blob, which means you can see and break the same things Commvault would.

Most Commvault-to-Azure incidents turn out to be Azure settings rather than Commvault bugs: a rotated key, a firewall rule, an immutability policy longer than the retention, or a storage tier nobody planned for.

TimeYou needCostBy the end you can
About 45 minutesThe storage account from Lesson 21, the CLIUnder one US cent: 3 MB in the Cool tier for a dayDesign Commvault cloud libraries on Azure Blob and troubleshoot them from the Azure side

What it is, in one line

Commvault writes deduplicated backup chunks to an Azure Blob container, which it treats as a cloud storage library.

In Simple Words

The school’s storage room across town

Picture the school office (Commvault) packing old exam papers into numbered boxes and driving them to a rented storage room across town (Azure Blob), while a list at the office records which paper went into which box. The storage company gives the office a key card. If that card is changed and nobody tells the office, the van turns up and can’t get in, and if the storage company has a rule that “no box leaves for 2 years”, the office can’t throw old boxes away however much it wants to. Nearly every problem in this lesson comes down to one of those two: the key card, or the storage company’s rules.

Engineer's View

How Commvault uses Azure Blob

  • Components: the CommServe server runs the CommCell (jobs, catalog, schedules), MediaAgents move the data and hold the deduplication database, and Command Center is the web console. You’ll also see the name Commvault Cloud, which is what the current product family is called.
  • Cloud library: each library uses one storage account and container, and you add it in Command Center as Microsoft Azure Storage. Inside it, Commvault writes folders like CV_MAGNETIC/V_101/CHUNK_2001/SFILE_CONTAINER_001.
  • Authentication: you have three choices. Use the access key and account name, use an IAM VM role assignment (the MediaAgent VM’s managed identity with Storage Blob Data Contributor, or Owner for WORM), or use an IAM AD application, which is a service principal with Storage Account Contributor and Storage Blob Data Contributor.
  • Storage class: pick Hot, Cool, Cold or Archive, or leave it on the container’s default. If you go with Archive, you need a recall workflow in place before any restore can run.
  • Network: the service host defaults to blob.core.windows.net, but if you use private endpoints you put in the privatelink host instead. Either way, the MediaAgents have to get through the storage firewall (Lesson 26).
  • WORM: Commvault can lock data using Azure immutability policies, and once data is locked it can’t be pruned until the lock ends.
  • Defender for Storage: Commvault recommends excluding its containers or turning scanning off there, because malware scanning on deduplicated chunks adds cost and noise.

How it works, step by step

A Commvault backup to Azure goes through these steps:

Commvault Azure Blob backup flow from client to cloud library
  1. The CommServe starts the job, and the client agent reads the data and sends it to a MediaAgent.
  2. The MediaAgent deduplicates it against its DDB, then compresses and encrypts the new blocks.
  3. It writes those blocks as chunk files into the container, using the library’s credentials and storage class.
  4. The catalog notes which job lives in which chunks.
  5. Later on, data aging prunes the chunks that no job needs any more, which only works if it has delete rights and there’s no active lock.

Steps 3 and 5 are where Azure settings bite. Without access the library goes offline, and with a lock or a missing delete permission the storage keeps growing and never shrinks.

Commvault Azure Blob library problems and their Azure causes

Throttling can come from two places. Blob storage returns HTTP 503 (ServerBusy) when a single account is pushed past its limits, while Azure Resource Manager returns HTTP 429 when snapshot-based VM backups make too many API calls (Lesson 68).

Simulated lab: a Commvault Azure Blob cloud library

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

In this stand-in lab the CLI plays the MediaAgent. Start by loading your storage account name:

$st = (Get-Content C:\azure-lab\storage.txt)

1Create the library container with a retention lock

Create the container, then add a time-based immutability policy of 1 day that isn’t locked yet (much like Commvault WORM with a short lock):

az storage container create --account-name $st --auth-mode login --name cv-library -o none
az storage container immutability-policy create --resource-group rg-saat-data --account-name $st --container-name cv-library --period 1 -o none
az storage container immutability-policy show --resource-group rg-saat-data --account-name $st --container-name cv-library --query "immutabilityPeriodSinceCreationInDays" -o tsv

You should see this:

1

Because the policy isn’t locked yet, you can still delete it. Once Commvault WORM locks a policy, nobody can shorten or remove it, not even Microsoft support.

2Write a “backup job” the way a MediaAgent does

Make three 1 MB chunk files and upload them to the Cool tier, using Commvault’s folder layout:

New-Item -ItemType Directory -Path C:\azure-lab\cv-chunks -Force | Out-Null
1..3 | ForEach-Object { $b = New-Object byte[] (1MB); (New-Object Random $_).NextBytes($b); [IO.File]::WriteAllBytes("C:\azure-lab\cv-chunks\SFILE_CONTAINER_00$_", $b) }
az storage blob upload-batch --account-name $st --auth-mode login --destination cv-library --source C:\azure-lab\cv-chunks --destination-path CV_MAGNETIC/V_101/CHUNK_2001 --tier Cool -o none
az storage blob list --account-name $st --auth-mode login --container-name cv-library --query "[].{name:name, bytes:properties.contentLength, tier:properties.blobTier}" -o table

You should see this:

Name                                              Bytes    Tier
------------------------------------------------  -------  ------
CV_MAGNETIC/V_101/CHUNK_2001/SFILE_CONTAINER_001  1048576  Cool
CV_MAGNETIC/V_101/CHUNK_2001/SFILE_CONTAINER_002  1048576  Cool
CV_MAGNETIC/V_101/CHUNK_2001/SFILE_CONTAINER_003  1048576  Cool

These are random bytes, which is roughly what encrypted, compressed backup data looks like. A real library holds millions of these files, so per-transaction costs matter as much as per-GB costs.

3Check what a MediaAgent identity needs

List your data roles on the account. A MediaAgent’s managed identity needs the same roles, at least on its own container:

$id = az storage account show --resource-group rg-saat-data --name $st --query id -o tsv
$me = az ad signed-in-user show --query id -o tsv
az role assignment list --assignee $me --scope $id --query "[].roleDefinitionName" -o tsv

You should see something like this:

Storage Blob Data Contributor
Storage Queue Data Contributor
Storage Table Data Contributor

For a WORM library, Commvault needs Storage Blob Data Owner or a custom role with the immutability policy actions, because it sets the locks itself.

4Write down the Azure side of the library

These are the values you’d type into Command Center:

Field in Command CenterValue from this lab
Cloud storage typeMicrosoft Azure Storage
Service hostblob.core.windows.net (or privatelink.blob.core.windows.net)
Account nameyour stsaat name
Containercv-library
AuthenticationIAM VM role assignment (managed identity)
Storage classCool
Commvault Azure Blob simulated lab: chunks written with a retention lock
The stand-in MediaAgent wrote three chunks in Commvault’s layout.

✅ Checkpoint: cv-library holds three Cool-tier chunks in Commvault’s layout, protected by a 1-day immutability policy that isn’t locked.

Break It, Then Fix It

Each break below matches a real Commvault alert you’ll run into at work: “data aging didn’t free space” and “mount path offline”.

1Break it: data aging can’t prune

The retention for this Commvault job has ended, so data aging tries to delete the chunks:

az storage blob delete --account-name $st --auth-mode login --container-name cv-library --name CV_MAGNETIC/V_101/CHUNK_2001/SFILE_CONTAINER_001

You’ll get an error like this:

This operation is not permitted as the blob is immutable due to a policy.
RequestId:...
Time:...
ErrorCode:BlobImmutableDueToPolicy

The Azure lock lasts longer than the Commvault retention, so pruning fails and the bill keeps climbing. With a real library you usually notice this months later, when the cloud library is far bigger than the jobs inside it.

To fix it, the lock period has to match retention. In Commvault you set WORM from the storage policy, so the lock follows retention plus a small buffer. Here in the lab the policy still isn’t locked, so you can remove it and prune:

$etag = az storage container immutability-policy show --resource-group rg-saat-data --account-name $st --container-name cv-library --query etag -o tsv
az storage container immutability-policy delete --resource-group rg-saat-data --account-name $st --container-name cv-library --if-match $etag
az storage blob delete --account-name $st --auth-mode login --container-name cv-library --name CV_MAGNETIC/V_101/CHUNK_2001/SFILE_CONTAINER_001
az storage blob list --account-name $st --auth-mode login --container-name cv-library --query "length([])"

You should see this:

2

A locked policy can’t be removed. If someone ever sets one too long, all you can do is wait it out and pay for the storage, because there’s no undo.

2Break it: the mount path goes offline

Someone flips the storage firewall to Deny and forgets to add the MediaAgent’s address:

az storage account update --resource-group rg-saat-data --name $st --default-action Deny -o none
Start-Sleep -Seconds 30
az storage blob list --account-name $st --auth-mode login --container-name cv-library -o table

You’ll get this error:

The request may be blocked by network rules of storage account. Please check network rule set using 'az storage account show -n accountname --query networkRuleSet'.
If you want to change the default action to apply when no rule matches, please use 'az storage account update'.

In Command Center you’d see the mount path go offline and backup jobs stuck waiting for resources, and the Commvault logs show HTTP 403 with AuthorizationFailure. You fix this on the Azure side, not in Commvault.

To fix it, allow the MediaAgent’s network with a VNet rule, an IP rule, or a private endpoint with the privatelink service host. For the lab, open the account up again and clean up:

az storage account update --resource-group rg-saat-data --name $st --default-action Allow -o none
az storage blob delete-batch --account-name $st --auth-mode login --source cv-library -o none
az storage container delete --account-name $st --auth-mode login --name cv-library -o none
Remove-Item C:\azure-lab\cv-chunks -Recurse
Commvault Azure Blob errors: immutable chunks and blocked network
So a lock stops pruning, and the firewall takes the library offline.

✅ Checkpoint: You traced a pruning failure to an immutability policy and an offline library to the storage firewall, and removed the lab container.

This happened at work

The cloud library that kept growing

A manufacturing company moved its Commvault secondary copies to Azure Blob with WORM turned on, mainly to protect against ransomware, and retention was set to 30 days. Eight months later someone from finance came asking why the storage account had grown to 410 TB when the backups themselves were only about 60 TB.

When the team dug in, they found that during the pilot an engineer had set the container’s immutability policy by hand to 365 days, “to be safe”, and locked it. Commvault’s data aging had been running every day and failing to prune every chunk older than 30 days, each time with BlobImmutableDueToPolicy.

What they changed: new libraries now use Commvault’s own WORM setting, so the lock follows the storage policy’s retention. The locked container is being left to expire, and its cost was written off as a lesson learned. They also added a monthly report that compares the library size in Azure with the Commvault job total and flags any gap over 20%.

Common mistakes and troubleshooting

MistakeWhat you seeWhat to do
Rotating the access key Commvault usesLibrary offline, 403 AuthenticationFailedUse managed identity, or update the key in Command Center first.
Storage firewall without the MediaAgentMount path offline, AuthorizationFailureAdd a VNet or IP rule, or a private endpoint.
Immutability longer than retentionData aging fails; storage growsLet Commvault set WORM from the storage policy.
Archive class without a recall planRestores wait hoursUse the archive recall workflow; plan RTO.
Defender scanning backup containersExtra cost and scan noiseExclude Commvault containers, per Commvault guidance.
One account for many busy libraries503 ServerBusy, slow jobsSpread libraries over storage accounts.

Interview questions

Click a question to open it. Each one is worded the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. How does Commvault store backups in Azure?

Why they ask this: To see if you know the basic architecture.

How you might answer: A MediaAgent deduplicates the backup data and writes it as chunk files into an Azure Blob container, and Commvault manages that container as a cloud storage library. The CommServe keeps the catalog that says which job sits in which chunks.

2. What authentication options does Commvault support for Azure Blob?

Why they ask this: A configuration check.

How you might answer: There are three. You can use the account name with an access key, an IAM VM role assignment that uses the MediaAgent VM’s managed identity, or an IAM AD application (a service principal) with the right storage roles.

3. What is WORM storage in this context?

Why they ask this: They want the ransomware angle.

How you might answer: It means write once, read many. Azure immutability policies stop the chunks from being changed or deleted until the lock expires, so neither an attacker nor an admin can destroy backup data early.

2–5 years experience

4. A Commvault cloud library went offline overnight. What do you check in Azure?

Why they ask this: They want to hear a real troubleshooting path.

How you might answer: I’d start with the storage account’s firewall and public network access, then private endpoint DNS if we use one. After that I’d check whether the access key was rotated or the identity’s role removed, and look at the Activity log for recent changes. The Commvault logs usually show the HTTP status and the Azure error code, which narrows it down quickly.

5. The library in Azure is much bigger than the jobs it holds. Why?

Why they ask this: They’re checking WORM and pruning knowledge.

How you might answer: Usually it’s immutability locks that are longer than the Commvault retention, so pruning fails. It can also be missing delete permissions, or orphaned data left behind by deleted storage policies. I’d look in the data aging logs for BlobImmutableDueToPolicy or a 403 on delete.

6. When would you choose Cool versus Archive for a Commvault cloud copy?

Why they ask this: They want cost and RTO trade-offs.

How you might answer: I’d use Cool for copies we might restore within days, because access is fast. Archive is for long-term compliance copies where waiting hours for a recall is fine, and only once the recall workflow has been tested.

Senior level

7. How do you design a ransomware-resilient Commvault copy in Azure?

Why they ask this: They want a full design.

How you might answer: I’d put it in a separate subscription and storage account, allow access only from the MediaAgents through a private endpoint, and use managed identity for auth. WORM gets set from Commvault retention, soft delete stays on, Defender exclusions follow the vendor’s guidance, and the backup team gets an air-gapped admin path.

8. How do you handle storage throttling with large Commvault libraries?

Why they ask this: They want scale knowledge.

How you might answer: I’d watch for HTTP 503 ServerBusy, spread the libraries over several storage accounts, tune the stream counts on the MediaAgents and use bigger chunk sizes so there are fewer transactions. ARM throttling with HTTP 429 is a separate limit that hits snapshot-based VM backups.

9. How would you prove a Commvault Azure copy is restorable?

Why they ask this: They want verification.

How you might answer: I’d schedule restore tests into an isolated environment, run Commvault data verification jobs on the cloud copy, and do a recall test now and then for archive-class data. I’d also compare the storage size in Azure with the Commvault reports so any drift shows up early.

Quick quiz

Q1. Which Commvault component writes data to Azure Blob?

  1. CommServe
  2. MediaAgent
  3. Command Center
  4. Client agent
Show answer

B — MediaAgents move and store data.

Q2. Which role does a MediaAgent identity need for a normal library?

  1. Reader
  2. Storage Blob Data Contributor
  3. Network Contributor
  4. Owner of the subscription
Show answer

B — For WORM libraries it needs Storage Blob Data Owner.

Q3. Data aging fails with BlobImmutableDueToPolicy. Cause?

  1. Wrong tier
  2. An immutability lock still active
  3. Firewall
  4. Expired SAS
Show answer

B — Locked blobs can’t be deleted until the lock ends.

Q4. Library offline after a firewall change. Which error appears?

  1. AuthorizationFailure (403)
  2. BlobArchived
  3. ShareHasSnapshots
  4. QuotaExceeded
Show answer

A — The firewall blocks the MediaAgent.

Q5. Which status code means Blob storage is too busy?

  1. 200
  2. 404
  3. 409
  4. 503
Show answer

D — ServerBusy returns HTTP 503.

Quick recap

You can now design the Azure side of a Commvault cloud library and troubleshoot it when it breaks.

  • MediaAgents write deduplicated chunks to a Blob container.
  • Prefer managed identity, because rotating a key breaks key-based libraries.
  • WORM locks have to match retention or pruning fails.
  • Storage firewall and private endpoint DNS decide if the library is online.
  • 503 means storage throttling and 429 means API throttling.

Next lesson

Lesson 38: Rubrik with Azure: SLA domains and archive to Blob → You design Rubrik SLA domains that archive to Azure Blob and troubleshoot the archive location.

Further reading: Commvault Azure Blob

Want to go deeper into Commvault Azure Blob? See Commvault: Microsoft Azure Storage IAM VM role assignment and Microsoft’s Immutable storage for Azure Blob. You can also see the full plan for this course on the Azure Cloud Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.