Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix application_id references in azuread_service_principal & azuread_application_published_app_ids #1220

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
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