Skip to content

Commit ef2d263

Browse files
committed
Extend api_management_api with default role output
1 parent ac1ca69 commit ef2d263

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

api_management_api/outputs.tf

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,21 @@ output "app_registration_name" {
2121

2222
output "application_id_uri" {
2323
value = "api://${var.app_registration_name}"
24-
}
24+
}
25+
26+
output "default_role" {
27+
value = length([
28+
for role in data.azuread_application.app_registration[0].app_roles : role if role.value == "Default.Access"
29+
]) > 0 ? [
30+
for role in data.azuread_application.app_registration[0].app_roles : role.id if role.value == "Default.Access"
31+
][0] : null
32+
}
33+
34+
35+
36+
37+
38+
39+
40+
41+

0 commit comments

Comments
 (0)