简体   繁体   English

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

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

using below snippet I can create application insights and function_app but I am not sure how to configure function-app to use the created application insights. 使用下面的代码片段,我可以创建应用程序见解和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"
}

but When I visit azure > function_app > Monitor, it still shows to configure application_insights. 但是当我访问azure> function_app> Monitor时,它仍然显示要配置application_insights。

配置应用程序见解

any suggestion? 有什么建议吗?

See sample here: https://www.olivercoding.com/2018-06-24-terraform/ . 在此处查看示例: https : //www.olivercoding.com/2018-06-24-terraform/ You need to add the AppInsights_InstrumentationKey to the app_settings of your function app. 您需要将AppInsights_InstrumentationKey添加到函数app的app_settings中。

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

相关问题 在 Azure 函数应用程序中为 Application Insights 配置云角色名称 - Configure Cloud Role Name for Application Insights in an Azure Function App 如何配置 Azure 应用服务以从具有 terraform 的 ACR 中提取图像? - How to configure an Azure app service to pull images from an ACR with terraform? 如何在Azure Application Inisghts中记录404页面的Kentico中的事件URL字段? - How to log the Event URL field in Kentico for 404 pages in Azure Application Inisghts? Terraform Azure Function App 部署 - 表示设置 - Terraform Azure Function App Deployment - Representing settings 启用网络注入的 Terraform azure Function App - Terraform azure Function App with Enable network injection Azure Function 应用源代码控制与 terraform - Azure Function app source control with terraform 使用 Z1B1ED905D54C18E3DD88289 部署 Azure powershell function 应用程序时出现问题 - Issue in deploying Azure powershell function app with terraform 以编程方式仅为Azure Function App配置HTTPS - Programmatically Configure HTTPS Only for Azure Function App 如何使用Terraform在Azure API管理中导入Azure Function应用? - How to import Azure Function App in Azure API Management using Terraform? Azure 应用网关 terraform - Azure application Gateway terraform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM