In this lab you will create a Log Analytics workspace that will be used to view container insights of your AKS Cluster
- 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
- Create the ACR by running the following:
terraform init
- To initialize the working directory and pull down the providerterraform plan
- To go through a "check" and confirm the configurations are validterraform apply
- To create the resource