Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

corelight/terraform-azure-sensor

Repository files navigation

⚠️ DEPRECATED — This repository has moved

This repository is no longer maintained and has been archived (read-only). All Corelight Terraform modules now live in the Corelight Terraform monorepo.

New location: modules/azure/sensor

Update your module source (replace <version> with a release tag, e.g. v29.0.5-5):

module "sensor" {
  source = "github.com/corelight/terraform//modules/azure/sensor?ref=<version>"
}

See the monorepo README for the full module list.


terraform-azure-sensor

Terraform for Corelight's Azure Cloud Sensor Deployment.

overview

Usage

module "sensor" {
  source = "github.com/corelight/terraform-azure-sensor"

  license_key                    = "<your Corelight sensor license key>"
  location                       = "<Azure location to deploy resources in>"
  resource_group_name            = "<resource group to deploy in>"
  corelight_sensor_image_id      = "<image resource id from Corelight>"
  community_string               = "<the community string (api string) often times referenced by Fleet>"
  sensor_ssh_public_key          = "<path to ssh public key>"
  management_subnet_id           = "<full management NIC subnet resource ID>"
  monitoring_subnet_id           = "<full management NIC subnet resource ID>"

  fleet_token = "<the pairing token from the Fleet UI>"
  fleet_url   = "<the URL of the fleet instance from the Fleet UI>"
  fleet_server_sslname = "<the ssl name provided by Fleet>"
  
  tags = {
    foo       = "bar"
    terraform = true
    purpose   = "Corelight"
  }
}

Deployment

The variables for this module all have default values that can be overwritten to meet your naming and compliance standards.

Deployment examples can be found here.

Least Privilege Deployment

The Corelight Azure sensor can be deployed with the following privileges:

  1. The Network Contributor built-in role
  2. Microsoft.Compute/images/read on the Corelight VM Image
  3. A custom role definition with the following permissions:
"Microsoft.Resources/subscriptions/resourcegroups/read"
"Microsoft.Compute/virtualMachineScaleSets/read"
"Microsoft.Insights/autoScaleSettings/read"
"Microsoft.Compute/virtualMachineScaleSets/write"
"Microsoft.Insights/autoScaleSettings/write"

License

The project is licensed under the MIT license.

About

Terraform for Corelight's Azure Cloud Sensor Deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages