Skip to content

Commit

Permalink
Merge pull request #1220 from PseudoCoding/main
Browse files Browse the repository at this point in the history
Fix `application_id` references in `azuread_service_principal` & `azuread_application_published_app_ids`
  • Loading branch information
manicminer authored Oct 23, 2023
2 parents 2b83288 + 6f64906 commit a736252
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/application_published_app_ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ output "published_app_ids" {
data "azuread_application_published_app_ids" "well_known" {}
resource "azuread_service_principal" "msgraph" {
application_id = data.azuread_application_published_app_ids.well_known.result["MicrosoftGraph"]
use_existing = true
client_id = data.azuread_application_published_app_ids.well_known.result["MicrosoftGraph"]
use_existing = true
}
resource "azuread_application" "example" {
Expand Down
12 changes: 6 additions & 6 deletions docs/resources/service_principal.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "azuread_application" "example" {
}
resource "azuread_service_principal" "example" {
application_id = azuread_application.example.application_id
client_id = azuread_application.example.client_id
app_role_assignment_required = false
owners = [data.azuread_client_config.current.object_id]
}
Expand All @@ -46,7 +46,7 @@ resource "azuread_application" "example" {
}
resource "azuread_service_principal" "example" {
application_id = azuread_application.example.application_id
client_id = azuread_application.example.client_id
app_role_assignment_required = false
owners = [data.azuread_client_config.current.object_id]
Expand All @@ -63,8 +63,8 @@ resource "azuread_service_principal" "example" {
data "azuread_application_published_app_ids" "well_known" {}
resource "azuread_service_principal" "msgraph" {
application_id = data.azuread_application_published_app_ids.well_known.result.MicrosoftGraph
use_existing = true
client_id = data.azuread_application_published_app_ids.well_known.result.MicrosoftGraph
use_existing = true
}
```

Expand All @@ -81,8 +81,8 @@ resource "azuread_application" "example" {
}
resource "azuread_service_principal" "example" {
application_id = azuread_application.example.application_id
use_existing = true
client_id = azuread_application.example.client_id
use_existing = true
}
```

Expand Down

0 comments on commit a736252

Please sign in to comment.