Skip to content

Commit 5844146

Browse files
fix: Add outputs to application insights module
1 parent 483cf63 commit 5844146

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
21
output "connection_string" {
32
value = azurerm_application_insights.appins.connection_string
43
}
54

65
output "id" {
76
value = azurerm_application_insights.appins.id
87
}
8+
9+
output "name" {
10+
value = azurerm_application_insights.appins.name
11+
}
12+
13+
output "resource_group_name" {
14+
value = azurerm_application_insights.appins.resource_group_name
15+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource "azuread_group_member" "function_app" {
2+
for_each = var.entra_id_group_ids
3+
4+
group_object_id = each.key
5+
member_object_id = azurerm_linux_function_app.function_app.identity.0.principal_id
6+
}

infrastructure/modules/linux-web-app/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ variable "docker_image_name" {
4747
default = ""
4848
}
4949

50+
variable "entra_id_group_ids" {
51+
type = list(string)
52+
default = []
53+
}
54+
5055
variable "ftp_publish_basic_authentication_enabled" {
5156
type = bool
5257
description = "Enable basic authentication for FTP. Defaults to false."

0 commit comments

Comments
 (0)