Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.33 KB

File metadata and controls

20 lines (14 loc) · 1.33 KB

Create an Azure Log Analytics Workspace

Before proceeding, ensure that the values in the terraform.tfvars file are accurate for your environment. You may need to customize these values to match your specific configuration.

In this lab you will create a Log Analytics workspace that will be used to view container insights of your AKS Cluster

Create the Log Analytics Workspace Terraform Configuration

  1. You can find the Terraform configuration for Log Analytics here. The Terraform configuration files are used to create the Log Analytiocs workspace.

The Terraform la.tf will:

  • Use a Terraform backend to store the .tfstate in an Azure Storage Account
  • Use the azurerm_log_analytics_workspace Terraform resource to create a Log Analytics workspace.
  • Use the azurerm_log_analytics_solution Terraform resource to enable the Log Analytics solution ContainerInsights.
  • Use the uksouth region, but feel free to change that if you'd like
  1. Create the Log Analytics Workspace by running the following:
  • terraform init - To initialize the working directory and pull down the provider
  • terraform plan - To go through a "check" and confirm the configurations are valid
  • terraform apply - To create the resource