[Live Webinar] Next-Level O11y: Why Every DevOps Team Needs a RUM Strategy Register today!

Back to All Docs

Azure Diagnostic Data Terraform Module Azure Diagnostic Data Terraform Module

Last Updated: Mar. 05, 2024

Using our Terraform modules, you can easily install and manage Coralogix integrations with Azure services as modules in your infrastructure code. This tutorial demonstrates how to install our function app, which processes logs and metrics that are forwarded through diagnostic settings to an Event Hub and are then transmitted to Coralogix.

Our modules are open-source and available on Github and in the Terraform registry.

Prerequisites

  • A resource group and storage account to be used by your function app must be provided as inputs in the Terraform module.
  • The Event Hub namespace and instance must be preexisting.

Installation

This tutorial demonstrates how to install our function app, which processes logs and metrics that are forwarded through diagnostic settings to an Event Hub and are then transmitted to Coralogix.

Add this declaration to your Terraform project:

terraform {
  required_providers {
    azurerm = {
      source = "hashicorp/azurerm"
      version = "~> 3.93"
    }
  }
}

provider "azurerm" {
  features {}
}

module "DiagnosticData" {
  source = "coralogix/azure/coralogix//modules/DiagnosticData"

  CoralogixRegion = "Europe"
  CustomDomain = < Custom FQDN if applicable >
  CoralogixPrivateKey = < Send Your Data - API Key >
  CoralogixApplication = "Azure"
  CoralogixSubsystem = "DiagnosticData"
  FunctionResourceGroupName = < Function ResourceGroup Name >
  FunctionStorageAccountName = < Function StorageAccount Name >
  FunctionAppServicePlanType = "Consumption"
  EventhubInstanceName = < Name of EventHub Instance >
  EventhubNamespace = < Name of Eventhub Namespace >
  EventhubResourceGroupName = < Name of Eventhub ResourceGroup >
}

Notes:

  • Input the following variables:
  • An SAS policy will be created by the Terraform module to allow listen access to the Event Hub instance by the function app.

Additional Resources

DocumentationCoralogix Terraform Provider
External DocumentationCoralogix Function App
Github: Azure – Coralogix Terraform Module
Terraform Registry

Support

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].

On this page

Live Webinar
Next-Level O11y: Why Every DevOps Team Needs a RUM Strategy
April 30th at 12pm ET | 6pm CET
Save my Seat