Skip to content

equinor/terraform-azurerm-grafana

Repository files navigation

terraform-azurerm-grafana

SCM Compliance Equinor Terraform Baseline Conventional Commits

Terraform module which creates an Azure Managed Grafana instance.

Features

  • Audit logs sent to given Log Analytics workspace by default.

Development

  1. Read this document.

  2. Clone this repository.

  3. Configure Terraform variables in a file .devcontainer/devcontainer.env:

    TF_VAR_resource_group_name=
    TF_VAR_location=
  4. Open repository in dev container.

Testing

  1. Change to the test directory:

    cd test
  2. Login to Azure:

    az login
  3. Set active subscription:

    az account set -s <SUBSCRIPTION_NAME_OR_ID>
  4. Run tests:

    go test -timeout 60m

Limitations

  • Azure Managed Grafana has a limitation when trying to log into Grafana using AAD SSO with the Firefox browser. Firefox 91+ is only supported on Windows devices when it comes to conditional access.

Fixes

  • Use Firefox 91+, since it is supported for device-based Conditional Access, but "Allow Windows single sign-on for Microsoft, work, and school accounts" needs to be enabled. Enable Windows SSO login in Firefox.

  • Pursue the use of a different browser.

Contributing

See Contributing guidelines.