Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.06 KB

3-Create-Log-Analytics.md

File metadata and controls

17 lines (12 loc) · 1.06 KB

Create an Azure Log Analytics Workspace

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 Analytics workspace.

The Terraform main.tf will do a few things:

  • 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 westeurope region, but feel free to change that if you'd like
  1. Create the ACR 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