Microsoft. SQL 서버/암호화 보호자

Bicep 자원 정의

서버/encryptionProtector 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.

사용 예제

Bicep 샘플

MSSQL Server에 대한 투명한 데이터 암호화 구성을 배포하는 기본 예제입니다.

@secure()
@description('The administrator login password for the SQL server')
param administratorLoginPassword string
param resourceName string = 'acctest0001'
param location string = 'westus'

resource server 'Microsoft.Sql/servers@2023-08-01-preview' = {
  name: resourceName
  location: location
  properties: {
    administratorLogin: 'mradministrator'
    administratorLoginPassword: administratorLoginPassword
    minimalTlsVersion: '1.2'
    publicNetworkAccess: 'Enabled'
    restrictOutboundNetworkAccess: 'Disabled'
    version: '12.0'
  }
}

resource encryptionProtector 'Microsoft.Sql/servers/encryptionProtector@2023-08-01-preview' = {
  name: 'current'
  parent: server
  properties: {
    autoRotationEnabled: false
    serverKeyName: ''
    serverKeyType: 'ServiceManaged'
  }
}

리소스 형식

Microsoft를 만드는 것. Sql/servers/encryptionProtector 리소스, 템플릿에 다음 Bicep를 추가하세요.

resource symbolicname 'Microsoft.Sql/servers/encryptionProtector@2025-02-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    autoRotationEnabled: bool
    serverKeyName: 'string'
    serverKeyType: 'string'
  }
}

속성 값

Microsoft. SQL/서버/암호화 보호자

Name Description Value
name 리소스 이름 'current'(필수)
parent Bicep에서는 자식 리소스의 부모 리소스를 지정할 수 있습니다. 자식 리소스가 부모 리소스 외부에서 선언된 경우에만 이 속성을 추가해야 합니다.

자세한 내용은 부모 리소스 외부의 자식 리소스참조하세요.
형식 리소스의 기호 이름: 서버
properties 리소스 속성입니다. EncryptionProtectorProperties

EncryptionProtectorProperties

Name Description Value
autoRotationEnabled 키 자동 회전 옵트인 플래그입니다. true 또는 false입니다. bool
serverKeyName 서버 키의 이름입니다. string
serverKeyType 'ServiceManaged', 'AzureKeyVault'와 같은 암호화 보호기 유형입니다. 'AzureKeyVault'
'ServiceManaged'(필수)

ARM 템플릿 리소스 정의

서버/encryptionProtector 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

사용 예제

Azure 빠른 시작 템플릿

다음 Azure 퀵스타트 템플릿이 이 리소스 유형을 배포합니다.

Template Description
데이터 암호화 보호기

Azure
이 템플릿은 Azure SQL 서버를 생성하고, 특정 Key Vault에 저장된 키를 사용해 데이터 암호화 보호기를 활성화합니다

리소스 형식

Microsoft를 만드는 것. Sql/servers/encryptionProtector 리소스, 템플릿에 다음 JSON 파일을 추가하세요.

{
  "type": "Microsoft.Sql/servers/encryptionProtector",
  "apiVersion": "2025-02-01-preview",
  "name": "string",
  "properties": {
    "autoRotationEnabled": "bool",
    "serverKeyName": "string",
    "serverKeyType": "string"
  }
}

속성 값

Microsoft. SQL/서버/암호화 보호자

Name Description Value
apiVersion api 버전 '2025-02-01-미리보기'
name 리소스 이름 'current'(필수)
properties 리소스 속성입니다. EncryptionProtectorProperties
type 리소스 종류 'Microsoft. SQL/서버/암호화 보호자'

EncryptionProtectorProperties

Name Description Value
autoRotationEnabled 키 자동 회전 옵트인 플래그입니다. true 또는 false입니다. bool
serverKeyName 서버 키의 이름입니다. string
serverKeyType 'ServiceManaged', 'AzureKeyVault'와 같은 암호화 보호기 유형입니다. 'AzureKeyVault'
'ServiceManaged'(필수)

Terraform(AzAPI 공급자) 리소스 정의

서버/encryptionProtector 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

  • 자원 그룹 각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.

사용 예제

Terraform 샘플

MSSQL Server에 대한 투명한 데이터 암호화 구성을 배포하는 기본 예제입니다.

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westus"
}

variable "administrator_login_password" {
  type        = string
  sensitive   = true
  description = "The administrator login password for the SQL server"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "server" {
  type      = "Microsoft.Sql/servers@2023-08-01-preview"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  identity {
    type         = "SystemAssigned"
    identity_ids = []
  }
  body = {
    properties = {
      administratorLogin            = "mradministrator"
      administratorLoginPassword    = var.administrator_login_password
      minimalTlsVersion             = "1.2"
      publicNetworkAccess           = "Enabled"
      restrictOutboundNetworkAccess = "Disabled"
      version                       = "12.0"
    }
  }
}

resource "azapi_resource" "encryptionProtector" {
  type      = "Microsoft.Sql/servers/encryptionProtector@2023-08-01-preview"
  parent_id = azapi_resource.server.id
  name      = "current"
  body = {
    properties = {
      autoRotationEnabled = false
      serverKeyName       = ""
      serverKeyType       = "ServiceManaged"
    }
  }
}

리소스 형식

Microsoft를 만드는 것. SQL/servers/encryptionProtector 리소스, 템플릿에 다음 Terraform을 추가하세요.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Sql/servers/encryptionProtector@2025-02-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      autoRotationEnabled = bool
      serverKeyName = "string"
      serverKeyType = "string"
    }
  }
}

속성 값

Microsoft. SQL/서버/암호화 보호자

Name Description Value
name 리소스 이름 'current'(필수)
parent_id 이 리소스의 부모인 리소스의 ID입니다. 유형의 리소스에 대한 ID: 서버
properties 리소스 속성입니다. EncryptionProtectorProperties
type 리소스 종류 "Microsoft. Sql/servers/encryptionProtector@2025-02-01-preview"

EncryptionProtectorProperties

Name Description Value
autoRotationEnabled 키 자동 회전 옵트인 플래그입니다. true 또는 false입니다. bool
serverKeyName 서버 키의 이름입니다. string
serverKeyType 'ServiceManaged', 'AzureKeyVault'와 같은 암호화 보호기 유형입니다. 'AzureKeyVault'
'ServiceManaged'(필수)