有没有办法在 Azure 函数应用程序中使用 terraform 创建 HTTPtriggers
Is there a way to create HTTPtriggers using terraform in azure function app
我正在尝试创建新的 azure 函数应用程序,其中包含 azure 函数 (HTTPtrigger)。我能够使用 terraform 创建函数应用程序,但我无法找到一种方法来创建 azure 函数作为它的一部分。已检查 Hashicorp azurem docs 但我在那里找不到它。
这是我创建 azure 函数应用程序的方式
resource "azurerm_function_app" "example" {
name = "functionapptest"
location = var.location
resource_group_name = var.resource_group_name
app_service_plan_id = var.functionappplan.id
storage_connection_string = azurerm_storage_account.functionapptestsa.primary_blob_connection_string
#storage_account_access_key = ""
app_settings = {
APPINSIGHTS_INSTRUMENTATIONKEY = azurerm_application_insights.app_insight.instrumentation_key
}
有没有办法用 terraform 创建 HTTP 触发器?
您将使用 Terraform 创建基础设施(您的代码应 运行 在其中)。在您的情况下,它是 azure 函数应用程序。
触发部分是代码责任以及您无法使用 Terraform 找到/创建它的原因。
您需要做的就是部署 Azure Function 项目,其中包含由 Http(或您使用的任何触发机制)触发的函数。
我正在尝试创建新的 azure 函数应用程序,其中包含 azure 函数 (HTTPtrigger)。我能够使用 terraform 创建函数应用程序,但我无法找到一种方法来创建 azure 函数作为它的一部分。已检查 Hashicorp azurem docs 但我在那里找不到它。
这是我创建 azure 函数应用程序的方式
resource "azurerm_function_app" "example" {
name = "functionapptest"
location = var.location
resource_group_name = var.resource_group_name
app_service_plan_id = var.functionappplan.id
storage_connection_string = azurerm_storage_account.functionapptestsa.primary_blob_connection_string
#storage_account_access_key = ""
app_settings = {
APPINSIGHTS_INSTRUMENTATIONKEY = azurerm_application_insights.app_insight.instrumentation_key
}
有没有办法用 terraform 创建 HTTP 触发器?
您将使用 Terraform 创建基础设施(您的代码应 运行 在其中)。在您的情况下,它是 azure 函数应用程序。
触发部分是代码责任以及您无法使用 Terraform 找到/创建它的原因。
您需要做的就是部署 Azure Function 项目,其中包含由 Http(或您使用的任何触发机制)触发的函数。