繁体   English   中英

为Azure Function App(Terraform)配置应用程序提示

[英]Configure Application Inisghts for Azure Function App (Terraform)

使用下面的代码片段,我可以创建应用程序见解和function_app,但是我不确定如何配置function-app以使用创建的应用程序见解。

module "resource_group" {
  source      = "git::ssh://address"
  environment = "${var.environment}"
  application = "${var.application}"
  app_version = "${var.app_version}"
}

module "function_app" {
  source                            = "git::ssh://address"
  environment                       = "${var.environment}"
  application                       = "${var.application}"
  resource_group_name               = "${module.resource_group.name}"
  app_version                       = "${var.app_version}"
  app_service_plan_id               = "${module.app_service_plan.id}"
  storage_primary_connection_string = "${module.storage_account.primary_connection_string}"
}

resource "azurerm_application_insights" "application_insights" {
  name                = "${var.environment}-${var.application}-appInsights"
  location            = "${module.resource_group.location}"
  resource_group_name = "${module.resource_group.name}"
  application_type    = "Web"
}

但是当我访问azure> function_app> Monitor时,它仍然显示要配置application_insights。

配置应用程序见解

有什么建议吗?

在此处查看示例: https : //www.olivercoding.com/2018-06-24-terraform/ 您需要将AppInsights_InstrumentationKey添加到函数app的app_settings中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM