Home › Studies › AZ-104 › Storage › Object Replication

Object Replication

Policies and rules · prerequisites · copy scope · cross-tenant · status and troubleshooting

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

What it does

Prerequisites and permissions

RequirementSource accountDestination account
Change feedEnabledNot required
Blob versioningEnabledEnabled
ContainersMust exist before you create a ruleMust exist before you create a rule

Policies and rules

LimitValue
Rules per policy1,000
Destinations per source / policies per destination2 / 2
Container pairs in the portal10
Prefix filters in the portal5
Container deletion lagUp to 30 seconds

Cross-tenant replication

One Learn page labels the cross-tenant setting as preview, while the portal create page lists it as a normal option. Treat it as a current setting.

Status and troubleshooting

CLI and PowerShell

TaskAzure CLIPowerShell
Enable versioning and change feed (source)az storage account blob-service-properties update --resource-group <rg> --account-name <src> --enable-versioning --enable-change-feedUpdate-AzStorageBlobServiceProperty -ResourceGroupName <rg> -StorageAccountName <src> -EnableChangeFeed $true -IsVersioningEnabled $true
Enable versioning (destination)az storage account blob-service-properties update --resource-group <rg> --account-name <dest> --enable-versioningUpdate-AzStorageBlobServiceProperty ... -IsVersioningEnabled $true
Create the policy on the destinationaz storage account or-policy create --account-name <dest> --resource-group <rg> --source-account <src> --destination-account <dest> --source-container <c1> --destination-container <c2> --min-creation-time '2021-09-01T00:00:00Z' --prefix-match aSet-AzStorageObjectReplicationPolicy -ResourceGroupName <rg> -StorageAccountName <dest> -PolicyId default -SourceAccount <src> -Rule $rule1,$rule2
Add a ruleaz storage account or-policy rule add --account-name <dest> --resource-group <rg> --source-container <c> --destination-container <c> --policy-id <id> --prefix-match bNew-AzStorageObjectReplicationPolicyRule
Apply the policy to the sourceaz storage account or-policy show --account-name <dest> --policy-id <id> | az storage account or-policy create --account-name <src> --policy "@-"Set-AzStorageObjectReplicationPolicy -ResourceGroupName <rg> -StorageAccountName <src> -InputObject $destPolicy
Check a blob's statusaz storage blob show ... --query 'objectReplicationSourceProperties[].rules[].status'$blob.BlobProperties.ObjectReplicationSourceProperties[0].Rules[0].ReplicationStatus
Delete a policyaz storage account or-policy delete --policy-id <id> --account-name <src|dest> --resource-group <rg>Remove-AzStorageObjectReplicationPolicy -ResourceGroupName <rg> -StorageAccountName <acct> -PolicyId <id>
OrderStep
1Enable versioning on both accounts and change feed on the source
2Create the containers in both accounts
3Create the policy on the destination (policy ID default)
4Create the same policy on the source, using the returned policy ID

Exam Tips

Tick each tip once you can answer it without looking.

“Prerequisites for object replication” → Versioning on source and destination, change feed on the source. Trap: change feed on the destination, or soft delete.

“Replicate existing blobs too” → Copy scope: all objects, chosen when you create the rule. Trap: the default copies only new blobs.

“Writing to the destination container returns 409” → The replication policy locks the destination: delete the rule or policy. Trap: a permissions problem.

“Replicate only blobs whose names start with logs/” → A prefix filter in the rule. Trap: wildcards aren't supported.

“Do append blobs and page blobs replicate?” → No: block blobs only. Trap: all blob types.

“Account has a hierarchical namespace” → Object replication isn't supported. Trap: it works with Data Lake Storage.

“Are snapshots replicated?” → No: versions are, snapshots aren't. Trap: assuming snapshots follow versions.

“Can't disable versioning on the source account” → An object replication policy exists: delete the policies first. Trap: a soft delete setting.

“Blob moved to archive in the source” → Replication fails for that blob, and rehydrating doesn't trigger it. Trap: replication resuming on its own.

“Status Failed; the source blob was uploaded with a customer-provided key” → That isn't supported. Trap: a Key Vault permissions problem.

“Role needed to configure a policy” → Contributor on the account(s). Trap: Storage Blob Data Contributor.

“Maximum destination accounts for one source” → 2. Trap: unlimited.

“Source is in another tenant and you have no access to it” → Create the policy on the destination, export the JSON, and the source owner applies it with the same policy ID. Trap: the portal configuring both sides automatically.

“Policy creation with account names only fails” → With cross-tenant replication disallowed, use full resource IDs. Trap: the tenants being unrelated.

“Order of creating a policy” → Destination account first, then the source with the same policy ID. Trap: starting on the source with a new ID.

“Change the source blob's tier to cool” → The destination blob's tier doesn't change.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Storage EncryptionAzCopy & Storage Explorer →