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

AB#30325 make app reg an enterprise app #3

Merged
merged 6 commits into from
Apr 12, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions 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,13 @@ resource "azuread_application_pre_authorized" "azcli" {
for scope in api.oauth2_permission_scope : scope.id
]
])
}

resource "azuread_service_principal" "app" {
client_id = azuread_application.app.application_id
owners = var.app_registration_owners
gaurarpit marked this conversation as resolved.
Show resolved Hide resolved
tags = [
"AppServiceIntegratedApp",
"WindowsAzureActiveDirectoryIntegratedApp",
]
}
Loading