Skip to content

Commit 483cf63

Browse files
feat/app-services-entra-id-group-memberships
1 parent 44dca8d commit 483cf63

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
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/function-app/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ variable "cors_allowed_origins" {
5252
default = [""]
5353
}
5454

55+
variable "entra_id_group_ids" {
56+
type = list(string)
57+
default = []
58+
}
59+
5560
variable "ftp_publish_basic_authentication_enabled" {
5661
type = bool
5762
description = "Enable basic authentication for FTP. Defaults to false."

0 commit comments

Comments
 (0)