你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Cdn 配置文件/customDomains 2025-04-15

Bicep 资源定义

可以使用目标操作部署配置文件/customDomains 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Cdn/profiles/customDomains 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Cdn/profiles/customDomains@2025-04-15' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    azureDnsZone: {
      id: 'string'
    }
    extendedProperties: {
      {customized property}: 'string'
    }
    hostName: 'string'
    preValidatedCustomDomainResourceId: {
      id: 'string'
    }
    tlsSettings: {
      certificateType: 'string'
      cipherSuiteSetType: 'string'
      customizedCipherSuiteSet: {
        cipherSuiteSetForTls12: [
          'string'
        ]
        cipherSuiteSetForTls13: [
          'string'
        ]
      }
      minimumTlsVersion: 'string'
      secret: {
        id: 'string'
      }
    }
  }
}

属性值

Microsoft.Cdn/profiles/customDomains

名字 说明 价值
姓名 资源名称 string (必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源
类型资源的符号名称:配置文件
性能 包含要创建的域属性的 JSON 对象。 AFDDomain属性

AFDDomainHttpsCustomizedCipherSuiteSet

名字 说明 价值
cipherSuiteSetForTls12 TLS 1.2 的密码套件。 至少需要一个最低TlsVersion TLS 1.2。 包含任一项的字符串数组:
“DHE_RSA_AES128_GCM_SHA256”
“DHE_RSA_AES256_GCM_SHA384”
“ECDHE_RSA_AES128_GCM_SHA256”
“ECDHE_RSA_AES128_SHA256”
“ECDHE_RSA_AES256_GCM_SHA384”
“ECDHE_RSA_AES256_SHA384”
cipherSuiteSetForTls13 TLS 1.3 的密码套件。 至少要求至少一个TlsVersion TLS 1.2,TLS 1.3。 包含任一项的字符串数组:
“TLS_AES_128_GCM_SHA256”
“TLS_AES_256_GCM_SHA384”

AFDDomainHttps参数

名字 说明 价值
证书类型 定义 SSL 证书的源。 “AzureFirstPartyManagedCertificate”
“CustomerCertificate”
“ManagedCertificate”(必需)
cipherSuiteSetType 将用于 Https 的密码套件集类型 “已自定义”
“TLS10_2019”
“TLS12_2022”
“TLS12_2023”
自定义 CipherSuiteSet 自定义的密码套件对象,当 cipherSuiteSetType 为自定义时,将用于 Https。 AFDDomainHttpsCustomizedCipherSuiteSet
minimumTlsVersion 自定义密码SuiteSetType 时将用于 Https 的 TLS 协议版本。 “TLS10”
“TLS12”
“TLS13”
机密 对机密的资源引用。ie.subs/rg/profile/secret 资源引用

AFDDomain属性

名字 说明 价值
azureDnsZone 对 Azure DNS 区域的资源引用 资源引用
extendedProperties 表示域迁移属性的 Key-Value 对。 AFDDomainPropertiesExtendedProperties
主机名 域的主机名。 必须是域名。 string (必需)
preValidatedCustomDomainResourceId 对预验证自定义域所有权的 Azure 资源的资源引用 资源引用
tls设置 指定如何为域启用 HTTPS 的配置 - 使用 AzureFrontDoor 托管证书或用户自己的证书。 如果未指定,则启用 ssl 默认使用 AzureFrontDoor 托管证书。 AFDDomainHttps参数

AFDDomainPropertiesExtendedProperties

名字 说明 价值

资源引用

名字 说明 价值
身份证 资源 ID。 字符串

用法示例

Azure 快速入门示例

以下 Azure 快速入门模板 包含用于部署此资源类型的 Bicep 示例。

Bicep 文件 说明
使用 blob 源和专用链接 Front Door Premium 此模板创建 Front Door Premium 和 Azure 存储 Blob 容器,并使用 Front Door 的专用终结点将流量发送到存储帐户。
使用 Azure DNS 和自定义域 Front Door 标准版/高级版 此模板创建 Front Door 标准版/高级版,包括 Azure DNS 上的自定义域和Microsoft托管证书。
使用自定义域 Front Door 标准版/高级版 此模板创建 Front Door 标准版/高级版,包括自定义域和Microsoft托管证书。
使用域和证书 Front Door 标准版/高级版 此模板创建 Front Door 标准版/高级版,包括自定义域和客户管理的证书。
使用 WAF、域和日志将 FrontDoor CDN EventHub 此模板创建新的 Azure FrontDoor cdn 配置文件。 使用自定义和托管规则、cdn 路由、源和组与 WAF 和路由关联创建 WAF,配置自定义域,创建事件中心和诊断设置,以便使用事件中心发送 CDN 访问日志。

ARM 模板资源定义

可以使用目标操作部署配置文件/customDomains 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Cdn/profiles/customDomains 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Cdn/profiles/customDomains",
  "apiVersion": "2025-04-15",
  "name": "string",
  "properties": {
    "azureDnsZone": {
      "id": "string"
    },
    "extendedProperties": {
      "{customized property}": "string"
    },
    "hostName": "string",
    "preValidatedCustomDomainResourceId": {
      "id": "string"
    },
    "tlsSettings": {
      "certificateType": "string",
      "cipherSuiteSetType": "string",
      "customizedCipherSuiteSet": {
        "cipherSuiteSetForTls12": [ "string" ],
        "cipherSuiteSetForTls13": [ "string" ]
      },
      "minimumTlsVersion": "string",
      "secret": {
        "id": "string"
      }
    }
  }
}

属性值

Microsoft.Cdn/profiles/customDomains

名字 说明 价值
apiVersion API 版本 '2025-04-15'
姓名 资源名称 string (必需)
性能 包含要创建的域属性的 JSON 对象。 AFDDomain属性
类型 资源类型 “Microsoft.Cdn/profiles/customDomains”

AFDDomainHttpsCustomizedCipherSuiteSet

名字 说明 价值
cipherSuiteSetForTls12 TLS 1.2 的密码套件。 至少需要一个最低TlsVersion TLS 1.2。 包含任一项的字符串数组:
“DHE_RSA_AES128_GCM_SHA256”
“DHE_RSA_AES256_GCM_SHA384”
“ECDHE_RSA_AES128_GCM_SHA256”
“ECDHE_RSA_AES128_SHA256”
“ECDHE_RSA_AES256_GCM_SHA384”
“ECDHE_RSA_AES256_SHA384”
cipherSuiteSetForTls13 TLS 1.3 的密码套件。 至少要求至少一个TlsVersion TLS 1.2,TLS 1.3。 包含任一项的字符串数组:
“TLS_AES_128_GCM_SHA256”
“TLS_AES_256_GCM_SHA384”

AFDDomainHttps参数

名字 说明 价值
证书类型 定义 SSL 证书的源。 “AzureFirstPartyManagedCertificate”
“CustomerCertificate”
“ManagedCertificate”(必需)
cipherSuiteSetType 将用于 Https 的密码套件集类型 “已自定义”
“TLS10_2019”
“TLS12_2022”
“TLS12_2023”
自定义 CipherSuiteSet 自定义的密码套件对象,当 cipherSuiteSetType 为自定义时,将用于 Https。 AFDDomainHttpsCustomizedCipherSuiteSet
minimumTlsVersion 自定义密码SuiteSetType 时将用于 Https 的 TLS 协议版本。 “TLS10”
“TLS12”
“TLS13”
机密 对机密的资源引用。ie.subs/rg/profile/secret 资源引用

AFDDomain属性

名字 说明 价值
azureDnsZone 对 Azure DNS 区域的资源引用 资源引用
extendedProperties 表示域迁移属性的 Key-Value 对。 AFDDomainPropertiesExtendedProperties
主机名 域的主机名。 必须是域名。 string (必需)
preValidatedCustomDomainResourceId 对预验证自定义域所有权的 Azure 资源的资源引用 资源引用
tls设置 指定如何为域启用 HTTPS 的配置 - 使用 AzureFrontDoor 托管证书或用户自己的证书。 如果未指定,则启用 ssl 默认使用 AzureFrontDoor 托管证书。 AFDDomainHttps参数

AFDDomainPropertiesExtendedProperties

名字 说明 价值

资源引用

名字 说明 价值
身份证 资源 ID。 字符串

用法示例

Azure 快速入门模板

以下 Azure 快速入门模板 部署此资源类型。

模板 说明
使用 blob 源和专用链接 Front Door Premium

部署到 Azure
此模板创建 Front Door Premium 和 Azure 存储 Blob 容器,并使用 Front Door 的专用终结点将流量发送到存储帐户。
使用 Azure DNS 和自定义域 Front Door 标准版/高级版

部署到 Azure
此模板创建 Front Door 标准版/高级版,包括 Azure DNS 上的自定义域和Microsoft托管证书。
使用自定义域 Front Door 标准版/高级版

部署到 Azure
此模板创建 Front Door 标准版/高级版,包括自定义域和Microsoft托管证书。
使用域和证书 Front Door 标准版/高级版

部署到 Azure
此模板创建 Front Door 标准版/高级版,包括自定义域和客户管理的证书。
使用 WAF、域和日志将 FrontDoor CDN EventHub

部署到 Azure
此模板创建新的 Azure FrontDoor cdn 配置文件。 使用自定义和托管规则、cdn 路由、源和组与 WAF 和路由关联创建 WAF,配置自定义域,创建事件中心和诊断设置,以便使用事件中心发送 CDN 访问日志。

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署配置文件/customDomains 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Cdn/profiles/customDomains 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Cdn/profiles/customDomains@2025-04-15"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      azureDnsZone = {
        id = "string"
      }
      extendedProperties = {
        {customized property} = "string"
      }
      hostName = "string"
      preValidatedCustomDomainResourceId = {
        id = "string"
      }
      tlsSettings = {
        certificateType = "string"
        cipherSuiteSetType = "string"
        customizedCipherSuiteSet = {
          cipherSuiteSetForTls12 = [
            "string"
          ]
          cipherSuiteSetForTls13 = [
            "string"
          ]
        }
        minimumTlsVersion = "string"
        secret = {
          id = "string"
        }
      }
    }
  }
}

属性值

Microsoft.Cdn/profiles/customDomains

名字 说明 价值
姓名 资源名称 string (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:配置文件
性能 包含要创建的域属性的 JSON 对象。 AFDDomain属性
类型 资源类型 “Microsoft.Cdn/profiles/customDomains@2025-04-15”

AFDDomainHttpsCustomizedCipherSuiteSet

名字 说明 价值
cipherSuiteSetForTls12 TLS 1.2 的密码套件。 至少需要一个最低TlsVersion TLS 1.2。 包含任一项的字符串数组:
“DHE_RSA_AES128_GCM_SHA256”
“DHE_RSA_AES256_GCM_SHA384”
“ECDHE_RSA_AES128_GCM_SHA256”
“ECDHE_RSA_AES128_SHA256”
“ECDHE_RSA_AES256_GCM_SHA384”
“ECDHE_RSA_AES256_SHA384”
cipherSuiteSetForTls13 TLS 1.3 的密码套件。 至少要求至少一个TlsVersion TLS 1.2,TLS 1.3。 包含任一项的字符串数组:
“TLS_AES_128_GCM_SHA256”
“TLS_AES_256_GCM_SHA384”

AFDDomainHttps参数

名字 说明 价值
证书类型 定义 SSL 证书的源。 “AzureFirstPartyManagedCertificate”
“CustomerCertificate”
“ManagedCertificate”(必需)
cipherSuiteSetType 将用于 Https 的密码套件集类型 “已自定义”
“TLS10_2019”
“TLS12_2022”
“TLS12_2023”
自定义 CipherSuiteSet 自定义的密码套件对象,当 cipherSuiteSetType 为自定义时,将用于 Https。 AFDDomainHttpsCustomizedCipherSuiteSet
minimumTlsVersion 自定义密码SuiteSetType 时将用于 Https 的 TLS 协议版本。 “TLS10”
“TLS12”
“TLS13”
机密 对机密的资源引用。ie.subs/rg/profile/secret 资源引用

AFDDomain属性

名字 说明 价值
azureDnsZone 对 Azure DNS 区域的资源引用 资源引用
extendedProperties 表示域迁移属性的 Key-Value 对。 AFDDomainPropertiesExtendedProperties
主机名 域的主机名。 必须是域名。 string (必需)
preValidatedCustomDomainResourceId 对预验证自定义域所有权的 Azure 资源的资源引用 资源引用
tls设置 指定如何为域启用 HTTPS 的配置 - 使用 AzureFrontDoor 托管证书或用户自己的证书。 如果未指定,则启用 ssl 默认使用 AzureFrontDoor 托管证书。 AFDDomainHttps参数

AFDDomainPropertiesExtendedProperties

名字 说明 价值

资源引用

名字 说明 价值
身份证 资源 ID。 字符串