共用方式為


Microsoft.Sql servers/securityAlertPolicies

Bicep 資源定義

伺服器/securityAlertPolicies 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.Sql/servers/securityAlertPolicies 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Sql/servers/securityAlertPolicies@2024-05-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    disabledAlerts: [
      'string'
    ]
    emailAccountAdmins: bool
    emailAddresses: [
      'string'
    ]
    retentionDays: int
    state: 'string'
    storageAccountAccessKey: 'string'
    storageEndpoint: 'string'
  }
}

屬性值

Microsoft.Sql/servers/securityAlertPolicies

名字 描述 價值
名字 資源名稱 'Default' (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型的資源符號名稱:伺服器
性能 資源屬性。 SecurityAlertsPolicyProperties

SecurityAlertsPolicyProperties

名字 描述 價值
disabledAlerts 指定已停用的警示陣列。 允許的值為:Sql_Injection、Sql_Injection_Vulnerability、Access_Anomaly、Data_Exfiltration、Unsafe_Action、Brute_Force string[]
emailAccountAdmins 指定警示會傳送給帳戶管理員。 bool
emailAddresses 指定傳送警示的電子郵件地址陣列。 string[]
retentionDays 指定要保留在威脅偵測稽核記錄中的天數。 int
指定原則的狀態,無論是啟用或停用,還是尚未在特定資料庫上套用原則。 'Disabled'
'Enabled' (必要)
storageAccountAccessKey 指定威脅偵測稽核記憶體帳戶的標識符金鑰。 字串
storageEndpoint 指定 Blob 記憶體端點(例如 https://MyAccount.blob.core.windows.net)。 此 Blob 記憶體會保存所有威脅偵測稽核記錄。 字串

使用範例

Azure 快速入門範例

下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 描述
使用透明加密 專用 SQL 集區 使用透明數據加密建立 SQL Server 和專用 SQL 集區(先前稱為 SQL DW)。

ARM 樣本資源定義

伺服器/securityAlertPolicies 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.Sql/servers/securityAlertPolicies 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Sql/servers/securityAlertPolicies",
  "apiVersion": "2024-05-01-preview",
  "name": "string",
  "properties": {
    "disabledAlerts": [ "string" ],
    "emailAccountAdmins": "bool",
    "emailAddresses": [ "string" ],
    "retentionDays": "int",
    "state": "string",
    "storageAccountAccessKey": "string",
    "storageEndpoint": "string"
  }
}

屬性值

Microsoft.Sql/servers/securityAlertPolicies

名字 描述 價值
apiVersion API 版本 '2024-05-01-preview'
名字 資源名稱 'Default' (必要)
性能 資源屬性。 SecurityAlertsPolicyProperties
類型 資源類型 'Microsoft.Sql/servers/securityAlertPolicies'

SecurityAlertsPolicyProperties

名字 描述 價值
disabledAlerts 指定已停用的警示陣列。 允許的值為:Sql_Injection、Sql_Injection_Vulnerability、Access_Anomaly、Data_Exfiltration、Unsafe_Action、Brute_Force string[]
emailAccountAdmins 指定警示會傳送給帳戶管理員。 bool
emailAddresses 指定傳送警示的電子郵件地址陣列。 string[]
retentionDays 指定要保留在威脅偵測稽核記錄中的天數。 int
指定原則的狀態,無論是啟用或停用,還是尚未在特定資料庫上套用原則。 'Disabled'
'Enabled' (必要)
storageAccountAccessKey 指定威脅偵測稽核記憶體帳戶的標識符金鑰。 字串
storageEndpoint 指定 Blob 記憶體端點(例如 https://MyAccount.blob.core.windows.net)。 此 Blob 記憶體會保存所有威脅偵測稽核記錄。 字串

使用範例

Azure 快速入門範本

下列 Azure 快速入門範本 部署此資源類型。

範本 描述
使用透明加密 專用 SQL 集區

部署至 Azure
使用透明數據加密建立 SQL Server 和專用 SQL 集區(先前稱為 SQL DW)。

Terraform (AzAPI 提供者) 資源定義

伺服器/securityAlertPolicies 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.Sql/servers/securityAlertPolicies 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Sql/servers/securityAlertPolicies@2024-05-01-preview"
  name = "string"
  body = {
    properties = {
      disabledAlerts = [
        "string"
      ]
      emailAccountAdmins = bool
      emailAddresses = [
        "string"
      ]
      retentionDays = int
      state = "string"
      storageAccountAccessKey = "string"
      storageEndpoint = "string"
    }
  }
}

屬性值

Microsoft.Sql/servers/securityAlertPolicies

名字 描述 價值
名字 資源名稱 'Default' (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:伺服器
性能 資源屬性。 SecurityAlertsPolicyProperties
類型 資源類型 “Microsoft.Sql/servers/securityAlertPolicies@2024-05-01-preview”

SecurityAlertsPolicyProperties

名字 描述 價值
disabledAlerts 指定已停用的警示陣列。 允許的值為:Sql_Injection、Sql_Injection_Vulnerability、Access_Anomaly、Data_Exfiltration、Unsafe_Action、Brute_Force string[]
emailAccountAdmins 指定警示會傳送給帳戶管理員。 bool
emailAddresses 指定傳送警示的電子郵件地址陣列。 string[]
retentionDays 指定要保留在威脅偵測稽核記錄中的天數。 int
指定原則的狀態,無論是啟用或停用,還是尚未在特定資料庫上套用原則。 'Disabled'
'Enabled' (必要)
storageAccountAccessKey 指定威脅偵測稽核記憶體帳戶的標識符金鑰。 字串
storageEndpoint 指定 Blob 記憶體端點(例如 https://MyAccount.blob.core.windows.net)。 此 Blob 記憶體會保存所有威脅偵測稽核記錄。 字串