Skip to content

Azure Queue Storage Terraform module

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 that connects to your storage queue and sends logs 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 and provided as inputs in the Terraform module

  • Preexisting storage queue

  • Storage account associated with the storage queue configured for public access (Optional VNet support configuration available)

Installation

To install our function app, which connects to your storage queue and sends logs to Coralogix, add this declaration to your Terraform project:

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

provider "azurerm" {
  features {}
}

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

  CoralogixRegion = "Europe"
  CustomDomain = < Custom FQDN if applicable >
  CoralogixPrivateKey = < Send Your Data - API Key >
  CoralogixApplication = "Azure"
  CoralogixSubsystem = "EventHub"
  FunctionResourceGroupName = < Function ResourceGroup Name >
  FunctionStorageAccountName = < Function StorageAccount Name >
  FunctionAppServicePlanType = "Consumption"
  StorageQueueName = < Name of the StorageQueue >
  StorageQueueStorageAccount = < Name of the StorageQueue Storage Account >
  StorageQueueResourceGroupName = < Name of the StorageQueue Resource Group >
}

Notes:

Additional Resources

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