共用方式為


Microsoft.Network dnsResolverPolicies/dnsSecurityRules 2023-07-01-preview

Bicep 資源定義

dnsResolverPolicies/dnsSecurityRules 資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.Network/dnsResolverPolicies/dnsSecurityRules 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Network/dnsResolverPolicies/dnsSecurityRules@2023-07-01-preview' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    action: {
      actionType: 'string'
      blockResponseCode: 'string'
    }
    dnsResolverDomainLists: [
      {
        id: 'string'
      }
    ]
    dnsSecurityRuleState: 'string'
    priority: int
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

DnsSecurityRuleAction

名字 描述 價值
actionType 要採取的動作類型。 'Alert'
'Allow'
'Block'
blockResponseCode 區塊動作的回應碼。 'SERVFAIL'

DnsSecurityRuleProperties

名字 描述 價值
行動 要對符合 DNS 安全性規則的 DNS 要求採取動作。 DnsSecurityRuleAction (必要)
dnsResolverDomainLists DNS 解析程式原則網域會列出適用於 DNS 安全性規則的網域。 SubResource[] (必要)
dnsSecurityRuleState DNS 安全性規則的狀態。 'Disabled'
'Enabled'
優先權 DNS 安全性規則的優先順序。 int (必要)

Microsoft.Network/dnsResolverPolicies/dnsSecurityRules

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 80
模式 = ^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$ (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱:dnsResolverPolicies
性能 DNS 安全性規則的屬性。 DnsSecurityRuleProperties (必要)
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

SubResource

名字 描述 價值
id 資源標識碼。 字串 (必要)

TrackedResourceTags

名字 描述 價值

ARM 樣本資源定義

dnsResolverPolicies/dnsSecurityRules 資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.Network/dnsResolverPolicies/dnsSecurityRules 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Network/dnsResolverPolicies/dnsSecurityRules",
  "apiVersion": "2023-07-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "action": {
      "actionType": "string",
      "blockResponseCode": "string"
    },
    "dnsResolverDomainLists": [
      {
        "id": "string"
      }
    ],
    "dnsSecurityRuleState": "string",
    "priority": "int"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

DnsSecurityRuleAction

名字 描述 價值
actionType 要採取的動作類型。 'Alert'
'Allow'
'Block'
blockResponseCode 區塊動作的回應碼。 'SERVFAIL'

DnsSecurityRuleProperties

名字 描述 價值
行動 要對符合 DNS 安全性規則的 DNS 要求採取動作。 DnsSecurityRuleAction (必要)
dnsResolverDomainLists DNS 解析程式原則網域會列出適用於 DNS 安全性規則的網域。 SubResource[] (必要)
dnsSecurityRuleState DNS 安全性規則的狀態。 'Disabled'
'Enabled'
優先權 DNS 安全性規則的優先順序。 int (必要)

Microsoft.Network/dnsResolverPolicies/dnsSecurityRules

名字 描述 價值
apiVersion API 版本 '2023-07-01-preview'
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 80
模式 = ^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$ (必要)
性能 DNS 安全性規則的屬性。 DnsSecurityRuleProperties (必要)
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.Network/dnsResolverPolicies/dnsSecurityRules'

SubResource

名字 描述 價值
id 資源標識碼。 字串 (必要)

TrackedResourceTags

名字 描述 價值

Terraform (AzAPI 提供者) 資源定義

dnsResolverPolicies/dnsSecurityRules 資源類型可以使用目標作業來部署:

  • 資源群組

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

資源格式

若要建立 Microsoft.Network/dnsResolverPolicies/dnsSecurityRules 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/dnsResolverPolicies/dnsSecurityRules@2023-07-01-preview"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      action = {
        actionType = "string"
        blockResponseCode = "string"
      }
      dnsResolverDomainLists = [
        {
          id = "string"
        }
      ]
      dnsSecurityRuleState = "string"
      priority = int
    }
  })
}

屬性值

DnsSecurityRuleAction

名字 描述 價值
actionType 要採取的動作類型。 'Alert'
'Allow'
'Block'
blockResponseCode 區塊動作的回應碼。 'SERVFAIL'

DnsSecurityRuleProperties

名字 描述 價值
行動 要對符合 DNS 安全性規則的 DNS 要求採取動作。 DnsSecurityRuleAction (必要)
dnsResolverDomainLists DNS 解析程式原則網域會列出適用於 DNS 安全性規則的網域。 SubResource[] (必要)
dnsSecurityRuleState DNS 安全性規則的狀態。 'Disabled'
'Enabled'
優先權 DNS 安全性規則的優先順序。 int (必要)

Microsoft.Network/dnsResolverPolicies/dnsSecurityRules

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 80
模式 = ^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$ (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:dnsResolverPolicies
性能 DNS 安全性規則的屬性。 DnsSecurityRuleProperties (必要)
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.Network/dnsResolverPolicies/dnsSecurityRules@2023-07-01-preview”

SubResource

名字 描述 價值
id 資源標識碼。 字串 (必要)

TrackedResourceTags

名字 描述 價值