Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 无法为terraform中的前门设置最低TLS版本_Azure_Terraform_Tls1.2_Azure Front Door - Fatal编程技术网

Azure 无法为terraform中的前门设置最低TLS版本

Azure 无法为terraform中的前门设置最低TLS版本,azure,terraform,tls1.2,azure-front-door,Azure,Terraform,Tls1.2,Azure Front Door,我正在使用terraform 1.44。当我尝试运行此命令时: resource "azurerm_frontdoor" "frontdoor" { name = "my-fd" location = "${azurerm_resource_group.default.location}" resource_group_name

我正在使用terraform 1.44。当我尝试运行此命令时:

resource "azurerm_frontdoor" "frontdoor" {
  name                                         = "my-fd"
  location                                     = "${azurerm_resource_group.default.location}"
  resource_group_name                          = "${azurerm_resource_group.default.name}"
  enforce_backend_pools_certificate_name_check = false

  routing_rule {
    .....
  }

  backend_pool_load_balancing {
    ......
  }

  backend_pool_health_probe {
    .....
  }

  backend_pool {
    .......
  }

  frontend_endpoint {
    name                                    = "myFrontendEndpoint"
    host_name                               = "my-custom.hostname.com"
    custom_https_provisioning_enabled       = true
    custom_https_configuration {
      certificate_source = "FrontDoor"
      minimum_tls_version = "1.2"
    }
  }
}
这是失败的

错误: “前端\终端。自定义\ https \配置。最低\ tls \版本:” 无法设置此字段

根据GitHub的问题,它应该已经得到解决,但文档链接已断开。。。在当前的文档中没有提到这个领域

如何创建此前端?未设置
最小\u tls\u版本
it错误

为前端端点:frontdoor启用自定义域HTTPS时出错。FrontEndPointsClient#EnableHTTPS:发送请求失败:StatusCode=400--原始错误:Code=“BadRequest”Message=“\”minimumTlsVersion\”是必需参数

2019年9月之后创建的所有前门轮廓使用TLS 1.2作为 默认最小值。

前门支持TLS版本1.0、1.1和1.2。TLS 1.3尚未发布 支持

从中,属性
最小\u tls\u版本
只能从
自定义\u https\u配置
块导出。它不能像参数引用那样设置

比如说,

....
      frontend_endpoint {
        name                              = "exampleFrontendEndpoint1"
        host_name                         = "example-FrontDoor.azurefd.net"

        custom_https_provisioning_enabled       = true
        custom_https_configuration {
          certificate_source = "FrontDoor"

      }
      }
    }

    output "minimum_tls_version" {
      value = "${azurerm_frontdoor.example.frontend_endpoint[0].custom_https_configuration[0].minimum_tls_version}"
    }

谢谢!当我第一次尝试不使用
minimum\u tls\u version
时,我使用的是1.42,但失败了。然后我尝试添加此字段并同时更新azure提供程序。但是在1.44上,你可以按照你的建议跳过它。美好的是的,我用1.44