【问题标题】:Can I get the Azure Function App default host key using Terraform?我可以使用 Terraform 获取 Azure Function App 默认主机密钥吗?
【发布时间】:2021-03-17 05:39:45
【问题描述】:

函数应用也是使用 terraform 创建的。创建完成后,我想将其保存到一个变量中,因为我想在其他地方使用它。

【问题讨论】:

    标签: azure azure-functions terraform terraform-provider-azure


    【解决方案1】:

    您可以使用 DataSource 获取主机密钥:

    data "azurerm_function_app_host_keys" "example" {
      name                = "function-name"
      resource_group_name = azurerm_resource_group.example.name
    }
    

    更多信息:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/function_app_host_keys

    【讨论】:

      猜你喜欢
      • 2022-11-19
      • 1970-01-01
      • 2021-10-16
      • 2018-03-25
      • 1970-01-01
      • 2020-07-04
      • 2021-02-19
      • 1970-01-01
      • 2020-11-05
      相关资源
      最近更新 更多