Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
AB#30325 make app reg an enterprise app
Browse files Browse the repository at this point in the history
NOTE - this PR was originally raised by Frances in ADO, and has been recreated here in GH.
  • Loading branch information
johncollinson2001 authored Apr 12, 2024
1 parent e0e780f commit 26afcec
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion infrastructure/app-registration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ resource "azuread_application" "app" {
id = "497406e4-012a-4267-bf18-45a1cb148a01"
value = "DataConsumer"
}

feature_tags {
enterprise = true
}

required_resource_access {
resource_app_id = "00000003-0000-0000-c000-000000000000" # Microsoft Graph

resource_access {
id = "df021288-bdef-4463-88db-98f22de89214" # User.Read.All
type = "Role"
}

resource_access {
id = "b4e74841-8e56-480b-be8b-910348b18b4c" # User.ReadWrite
type = "Scope"
}
}
}

resource "azuread_application_pre_authorized" "azcli" {
Expand All @@ -53,4 +71,4 @@ resource "azuread_application_pre_authorized" "azcli" {
for scope in api.oauth2_permission_scope : scope.id
]
])
}
}

0 comments on commit 26afcec

Please sign in to comment.