Skip to content

Commit

Permalink
Merge pull request #73 from WickramBug/update-appi
Browse files Browse the repository at this point in the history
[main] Update name abbreviation for appi
  • Loading branch information
SazniMohamed authored May 15, 2024
2 parents 71ac73f + 6da0ebb commit 3d234b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/azurerm/Application-Insights/application_insights.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
# --------------------------------------------------------------------------------------

resource "azurerm_application_insights" "application_insights" {
name = join("-", ["appi", var.application_insights_name])
name = join("-", [var.application_insights_abbreviation, var.application_insights_name])
location = var.location
resource_group_name = var.resource_group_name
application_type = var.application_type
daily_data_cap_in_gb = var.daily_data_cap_in_gb
daily_data_cap_notifications_disabled = var.daily_data_cap_notifications_disabled
retention_in_days = var.retention_in_days
disable_ip_masking = var.disable_ip_masking
workspace_id = var.workspace_id
tags = var.tags
}
12 changes: 12 additions & 0 deletions modules/azurerm/Application-Insights/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
#
# --------------------------------------------------------------------------------------

variable "application_insights_abbreviation" {
description = "Application Insights name abbreviation"
type = string
default = "appi"
}

variable "application_insights_name" {
description = "Application Insights name"
type = string
Expand Down Expand Up @@ -55,3 +61,9 @@ variable "daily_data_cap_notifications_disabled" {
description = "Disable daily data cap notifications"
type = bool
}

variable "workspace_id" {
description = "Specifies the id of a log analytics workspace resource."
type = string
default = null
}

0 comments on commit 3d234b1

Please sign in to comment.