I am trying to use a foreach in my data block to get the members of each azuread_groups
lz_subscription = {
identity = {
subscription_display_name = " Identity"
subscription_name = "Identity"
subscription_alias_name = "Identity"
subscription_workload = "Production"
azuread_groups = {
SupportRequestContrib = {
name = "SupportRequestContrib"
security_enabled = "true"
role = "Support Request Contributor"
members = [
"Elevated-Cloud"
]
}
my data block
data "azuread_groups" "member_groups" {
}
I’m running into problems trying to figure out how to get inside of the azuread_groups part and get only the members.