Managed Disk 고객 관리형 키 설정 점검

조직에서 고객 관리형 키를 요구한다면 호환되는 Disk Encryption Set을 연결하세요.

설명

Azure 관리 디스크는 기본적으로 플랫폼 관리형 키로 암호화됩니다. 조직에서 키를 직접 관리해야 한다면 디스크를 승인된 Disk Encryption Set에 연결하세요.

잠재적 영향

키를 비활성화하거나 암호화 집합의 키 접근 권한을 회수하면 디스크와 연결된 VM을 사용할 수 없게 될 수 있습니다.

해결 방법

일반 관리 디스크는 disk_encryption_set_id를 지정하세요. 고객 관리형 키로 Confidential VM 디스크를 보호할 때는 호환되는 security_type과 secure_vm_disk_encryption_set_id를 사용하세요. 두 ID 속성은 함께 지정할 수 없습니다. Key Vault 권한과 키 교체·복구 절차를 갖춘 뒤 디스크에 연결된 암호화 집합을 확인하세요.

예시

같은 128 GiB Premium 디스크에 일반 디스크용 암호화 집합을 연결하는 예시입니다. 참조할 집합과 키 권한을 먼저 구성하세요.

변경 전

hcl
resource "azurerm_managed_disk" "example" {
  name                 = "example-disk"
  location             = azurerm_resource_group.example.location
  resource_group_name  = azurerm_resource_group.example.name
  storage_account_type = "Premium_LRS"
  create_option        = "Empty"
  disk_size_gb         = 128
}

변경 후

hcl
resource "azurerm_managed_disk" "example" {
  name                   = "example-disk"
  location               = azurerm_resource_group.example.location
  resource_group_name    = azurerm_resource_group.example.name
  storage_account_type   = "Premium_LRS"
  create_option          = "Empty"
  disk_size_gb           = 128
  disk_encryption_set_id = azurerm_disk_encryption_set.example.id
}

참조