簡體   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