Azure Storage 테넌트 간 개체 복제 허용

승인된 용도에만 테넌트 간 개체 복제를 허용하세요.

설명

Blob 데이터를 다른 Microsoft Entra 테넌트에 복제하려면 원본과 대상 계정 모두에서 테넌트 간 복제를 허용하고 개체 복제 정책을 구성해야 합니다. 익명 읽기 권한은 별개입니다.

잠재적 영향

승인하지 않은 대상이 복제 정책에 포함되면 조직의 관리 범위 밖에 데이터 사본이 생깁니다.

해결 방법

테넌트 간 복제가 불필요하면 기존의 테넌트 간 정책을 먼저 제거한 뒤 cross_tenant_replication_enabled = false를 적용하세요. 적용 후 계정 설정과 남은 복제 정책의 대상·데이터 범위가 승인 내용과 일치하는지 확인하세요.

예시

두 Blob 지원 계정은 이름, 리소스 그룹, 리전과 복제 방식도 다릅니다. 기존 계정의 테넌트 제한만 바꿀 때는 이 설정들을 유지하세요.

변경 전

hcl
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
}

변경 후

hcl
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
}

참조