Description
To replicate blobs across Microsoft Entra tenants, both the source and destination accounts must allow cross-tenant replication, and an object replication policy must link them. Anonymous read access is separate.
Potential impact
A policy with an unapproved destination can copy data outside the organization’s control.
Remediation
If cross-tenant replication is unnecessary, remove existing cross-tenant policies before setting cross_tenant_replication_enabled = false. Verify the effective account setting and check that the destinations and data covered by any remaining policies are approved.
Examples
The two Blob-capable accounts also differ in name, resource group, region and replication settings. Keep the existing account’s settings when changing only the tenant restriction.
Before
resource "azurerm_storage_account" "example" {
name = "examplestorage"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
account_tier = "Standard"
account_replication_type = "GRS"
cross_tenant_replication_enabled = true
}
After
resource "azurerm_storage_account" "example" {
name = "safestorage"
resource_group_name = "testRG"
location = "northeurope"
account_tier = "Standard"
account_replication_type = "LRS"
account_kind = "StorageV2"
cross_tenant_replication_enabled = false
}