We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac1ca69 commit ef2d263Copy full SHA for ef2d263
api_management_api/outputs.tf
@@ -21,4 +21,21 @@ output "app_registration_name" {
21
22
output "application_id_uri" {
23
value = "api://${var.app_registration_name}"
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