{"id":18578958,"url":"https://github.com/libre-devops/terraform-azurerm-log-analytics-workspace","last_synced_at":"2026-05-05T22:36:07.956Z","repository":{"id":118714527,"uuid":"491183430","full_name":"libre-devops/terraform-azurerm-log-analytics-workspace","owner":"libre-devops","description":"A module which is used to deploy a log analytics workspace into a subscription.  Alternatively, if can be used to fetch info about an existing workspace, making this module multi-purpose.  Be sure to pass a provider block if you wish to perform a read on a new subscription :star:","archived":false,"fork":false,"pushed_at":"2024-09-19T23:53:25.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-01T22:40:33.827Z","etag":null,"topics":["azure","azurerm","azurerm-terraform-provider","module","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libre-devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-11T16:07:53.000Z","updated_at":"2024-11-23T08:13:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"9caf791d-7495-4d7b-b39e-bd55094a404d","html_url":"https://github.com/libre-devops/terraform-azurerm-log-analytics-workspace","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"libre-devops/terraform-module-template","purl":"pkg:github/libre-devops/terraform-azurerm-log-analytics-workspace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-log-analytics-workspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-log-analytics-workspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-log-analytics-workspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-log-analytics-workspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libre-devops","download_url":"https://codeload.github.com/libre-devops/terraform-azurerm-log-analytics-workspace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-log-analytics-workspace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32671164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azurerm","azurerm-terraform-provider","module","terraform","terraform-module"],"created_at":"2024-11-06T23:38:25.073Z","updated_at":"2026-05-05T22:36:07.941Z","avatar_url":"https://github.com/libre-devops.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"```hcl\nresource \"azurerm_log_analytics_workspace\" \"law\" {\n  name                               = try(var.law_name, null)\n  location                           = var.location\n  resource_group_name                = var.rg_name\n  allow_resource_only_permissions    = try(var.allow_resource_only_permissions, true)\n  local_authentication_disabled      = try(var.local_authentication_disabled, true)\n  cmk_for_query_forced               = try(var.cmk_for_query_forced, false, null)\n  sku                                = title(try(var.law_sku, null))\n  retention_in_days                  = try(var.retention_in_days, null)\n  reservation_capacity_in_gb_per_day = var.law_sku == \"CapacityReservation\" ? var.reservation_capacity_in_gb_per_day : null\n  daily_quota_gb                     = title(var.law_sku) == \"Free\" ? \"0.5\" : try(var.daily_quota_gb, null)\n  internet_ingestion_enabled         = try(var.internet_ingestion_enabled, null)\n  internet_query_enabled             = try(var.internet_query_enabled, null)\n  tags                               = try(var.tags, null)\n}\n```\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_azurerm\"\u003e\u003c/a\u003e [azurerm](#provider\\_azurerm) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [azurerm_log_analytics_workspace.law](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/log_analytics_workspace) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_allow_resource_only_permissions\"\u003e\u003c/a\u003e [allow\\_resource\\_only\\_permissions](#input\\_allow\\_resource\\_only\\_permissions) | Whether users require permissions to resources to view logs | `bool` | `true` | no |\n| \u003ca name=\"input_cmk_for_query_forced\"\u003e\u003c/a\u003e [cmk\\_for\\_query\\_forced](#input\\_cmk\\_for\\_query\\_forced) | Whether or not a Customer Managed Key for the query is forced | `bool` | `true` | no |\n| \u003ca name=\"input_daily_quota_gb\"\u003e\u003c/a\u003e [daily\\_quota\\_gb](#input\\_daily\\_quota\\_gb) | The amount of gb set for max daily ingetion | `string` | `\"\"` | no |\n| \u003ca name=\"input_internet_ingestion_enabled\"\u003e\u003c/a\u003e [internet\\_ingestion\\_enabled](#input\\_internet\\_ingestion\\_enabled) | Whether internet ingestion is enabled | `bool` | `null` | no |\n| \u003ca name=\"input_internet_query_enabled\"\u003e\u003c/a\u003e [internet\\_query\\_enabled](#input\\_internet\\_query\\_enabled) | Whether or not your workspace can be queried from the internet | `bool` | `null` | no |\n| \u003ca name=\"input_law_name\"\u003e\u003c/a\u003e [law\\_name](#input\\_law\\_name) | The name of a log analytics workspace | `string` | n/a | yes |\n| \u003ca name=\"input_law_sku\"\u003e\u003c/a\u003e [law\\_sku](#input\\_law\\_sku) | The sku of the log analytics workspace | `string` | `\"\"` | no |\n| \u003ca name=\"input_local_authentication_disabled\"\u003e\u003c/a\u003e [local\\_authentication\\_disabled](#input\\_local\\_authentication\\_disabled) | Whether local authentication is enabled, defaults to false | `bool` | `false` | no |\n| \u003ca name=\"input_location\"\u003e\u003c/a\u003e [location](#input\\_location) | The location for this resource to be put in | `string` | n/a | yes |\n| \u003ca name=\"input_reservation_capacity_in_gb_per_day\"\u003e\u003c/a\u003e [reservation\\_capacity\\_in\\_gb\\_per\\_day](#input\\_reservation\\_capacity\\_in\\_gb\\_per\\_day) | The reservation capacity gb per day, can only be used with CapacityReservation SKU | `string` | `\"\"` | no |\n| \u003ca name=\"input_retention_in_days\"\u003e\u003c/a\u003e [retention\\_in\\_days](#input\\_retention\\_in\\_days) | The number of days for retention, between 7 and 730 | `string` | `\"\"` | no |\n| \u003ca name=\"input_rg_name\"\u003e\u003c/a\u003e [rg\\_name](#input\\_rg\\_name) | The name of the resource group, this module does not create a resource group, it is expecting the value of a resource group already exists | `string` | n/a | yes |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | A map of the tags to use on the resources that are deployed with this module. | `map(string)` | \u003cpre\u003e{\u003cbr\u003e  \"source\": \"terraform\"\u003cbr\u003e}\u003c/pre\u003e | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_law_id\"\u003e\u003c/a\u003e [law\\_id](#output\\_law\\_id) | The  id of the log analytics workspace. If a new log analytic workspace is created, fetch its data id, if one is created, fetch the remote one instead |\n| \u003ca name=\"output_law_name\"\u003e\u003c/a\u003e [law\\_name](#output\\_law\\_name) | The name of the log analytics workspace |\n| \u003ca name=\"output_law_primary_key\"\u003e\u003c/a\u003e [law\\_primary\\_key](#output\\_law\\_primary\\_key) | The primary key of the log analytics workspace. If a new log analytic workspace is created, fetch its data id, if one is created, fetch the remote one instead |\n| \u003ca name=\"output_law_secondary_key\"\u003e\u003c/a\u003e [law\\_secondary\\_key](#output\\_law\\_secondary\\_key) | The primary key of the log analytics workspace. If a new log analytic workspace is created, fetch its data id, if one is created, fetch the remote one instead |\n| \u003ca name=\"output_law_workspace_id\"\u003e\u003c/a\u003e [law\\_workspace\\_id](#output\\_law\\_workspace\\_id) | The workspace id of the log analytics workspace. If a new log analytic workspace is created, fetch its data id, if one is created, fetch the remote one instead |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-azurerm-log-analytics-workspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibre-devops%2Fterraform-azurerm-log-analytics-workspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-azurerm-log-analytics-workspace/lists"}