Enable Terraform debugging for Microsoft Azure

Enable Terraform® debugging to troubleshoot potential issues with your Terraform configuration.

These resources are required:

  • A valid Arctic Wolf® Managed Risk license
  • The latest version of the Terraform binary
    Tip: Run terraform version to verify your existing Terraform version.
  • A user principal role with the Global Administrator role

These actions are required:

  1. If a configuration does not exist, run this command in a terminal to configure the log level:
    SHELL
    export TF_LOG="DEBUG"
  2. Run this command to verify the log level:
    SHELL
    echo $TF_LOG
  3. Run this command to configure the log path:
    SHELL
    export TF__LOG_PATH="./example/"
  4. Run this command to verify the logs generated by Terraform:
    SHELL
    terraform apply
  5. Verify that the debug logs are available at the path that you configured.