Microsoft. SQL-Server/Verschlüsselung Schutzschütze 2025-08-01-preview

Bicep-Ressourcendefinition

Der Server/encryptionProtector-Ressourcentyp kann mit Vorgängen bereitgestellt werden, die auf Folgendes abzielen:

Eine Liste der geänderten Eigenschaften in jeder API-Version finden Sie unter Änderungsprotokoll.

Verwendungsbeispiele

Beispiele für Bicep

Ein grundlegendes Beispiel für die Bereitstellung einer transparenten Datenverschlüsselungskonfiguration für einen 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'
  }
}

Ressourcenformat

Um ein Microsoft zu schaffen. SQL/Servers/EncryptionProtector-Ressource, fügen Sie den folgenden Bicep Ihrer Vorlage hinzu.

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

Eigenschaftswerte

Microsoft.Sql/servers/encryptionProtector

Name Description Wert
Name Der Ressourcenname "current" (erforderlich)
parent In Bicep können Sie die übergeordnete Ressource für eine untergeordnete Ressource angeben. Sie müssen diese Eigenschaft nur hinzufügen, wenn die untergeordnete Ressource außerhalb der übergeordneten Ressource deklariert wird.

Weitere Informationen finden Sie unter Untergeordnete Ressource außerhalb der übergeordneten Ressource.
Symbolischer Name für Ressource vom Typ: Server
properties Ressourceneigenschaften. EncryptionProtectorProperties

EncryptionProtectorProperties

Name Description Wert
autoRotationEnabled Kennzeichen für die automatische Drehung der Schlüsseldrehung. Entweder wahr oder falsch. bool
serverKeyName Der Name des Serverschlüssels. string
serverKeyType Der Verschlüsselungsschutztyp wie "ServiceManaged", "AzureKeyVault". 'AzureKeyVault'
'ServiceManaged' (erforderlich)

ARM-Vorlagenressourcendefinition

Der Server/encryptionProtector-Ressourcentyp kann mit Vorgängen bereitgestellt werden, die auf Folgendes abzielen:

Verwendungsbeispiele

Azure-Schnellstartvorlagen

Die folgenden Azure-Schnellstartvorlagen diesen Ressourcentyp bereitstellen.

Template Description
Erstellen Sie ein Azure SQL Server mit Datenverschlüsselungsschutz

In Azure bereitstellen
Diese Vorlage erstellt einen Azure SQL-Server und aktiviert den Datenverschlüsselungsschutz mit einem bestimmten Schlüssel, der in einem bestimmten Key Vault gespeichert ist

Ressourcenformat

Um ein Microsoft zu schaffen. SQL/Servers/EncryptionProtector-Ressource, fügen Sie das folgende JSON zu Ihrer Vorlage hinzu.

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

Eigenschaftswerte

Microsoft.Sql/servers/encryptionProtector

Name Description Wert
apiVersion (Englisch) Die API-Version '01.08.2025 Vorschau
Name Der Ressourcenname "current" (erforderlich)
properties Ressourceneigenschaften. EncryptionProtectorProperties
type Der Ressourcentyp 'Microsoft. SQL/Server/VerschlüsselungSchutz'

EncryptionProtectorProperties

Name Description Wert
autoRotationEnabled Kennzeichen für die automatische Drehung der Schlüsseldrehung. Entweder wahr oder falsch. bool
serverKeyName Der Name des Serverschlüssels. string
serverKeyType Der Verschlüsselungsschutztyp wie "ServiceManaged", "AzureKeyVault". 'AzureKeyVault'
'ServiceManaged' (erforderlich)

Terraform -Ressourcendefinition (AzAPI-Anbieter)

Der Server/encryptionProtector-Ressourcentyp kann mit Vorgängen bereitgestellt werden, die auf Folgendes abzielen:

  • Ressourcengruppen Eine Liste der geänderten Eigenschaften in jeder API-Version finden Sie unter Change Log.

Verwendungsbeispiele

Terraform-Beispiele

Ein grundlegendes Beispiel für die Bereitstellung einer transparenten Datenverschlüsselungskonfiguration für einen 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"
    }
  }
}

Ressourcenformat

Um ein Microsoft zu schaffen. SQL/Servers/EncryptionProtector-Ressource, fügen Sie folgendes Terraform zu Ihrer Vorlage hinzu.

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

Eigenschaftswerte

Microsoft.Sql/servers/encryptionProtector

Name Description Wert
Name Der Ressourcenname "current" (erforderlich)
parent_id Die ID der Ressource, die das übergeordnete Element für diese Ressource ist. ID für Ressource des Typs: Server
properties Ressourceneigenschaften. EncryptionProtectorProperties
type Der Ressourcentyp "Microsoft. SQL/servers/encryptionProtector@2025-08-01-preview"

EncryptionProtectorProperties

Name Description Wert
autoRotationEnabled Kennzeichen für die automatische Drehung der Schlüsseldrehung. Entweder wahr oder falsch. bool
serverKeyName Der Name des Serverschlüssels. string
serverKeyType Der Verschlüsselungsschutztyp wie "ServiceManaged", "AzureKeyVault". 'AzureKeyVault'
'ServiceManaged' (erforderlich)