Skip to content

Commit

Permalink
documentation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Sep 27, 2024
1 parent fe5d6d7 commit 0fe9311
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
1 change: 0 additions & 1 deletion docs/data-sources/service_principals.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ The following arguments are supported:

The following attributes are exported:

* `application_ids` - A list of client IDs of the applications associated with the service principals.
* `client_ids` - A list of client IDs of the applications associated with the service principals.
* `display_names` - A list of display names of the applications associated with the service principals.
* `object_ids` - The object IDs of the service principals.
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ data "azuread_domains" "example" {
}
# Create an application
resource "azuread_application" "example" {
resource "azuread_application_registration" "example" {
display_name = "ExampleApp"
}
# Create a service principal
resource "azuread_service_principal" "example" {
application_id = azuread_application.example.application_id
client_id = azuread_application_registration.example.client_id
}
# Create a user
Expand Down
12 changes: 6 additions & 6 deletions docs/resources/app_role_assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource "azuread_application" "example" {
}
resource "azuread_service_principal" "example" {
client_id = azuread_application.example.application_id
client_id = azuread_application.example.client_id
}
resource "azuread_app_role_assignment" "example" {
Expand All @@ -72,14 +72,14 @@ resource "azuread_application" "internal" {
}
resource "azuread_service_principal" "internal" {
client_id = azuread_application.internal.application_id
client_id = azuread_application.internal.client_id
}
resource "azuread_application" "example" {
display_name = "example"
required_resource_access {
resource_app_id = azuread_application.internal.application_id
resource_app_id = azuread_application.internal.client_id
resource_access {
id = azuread_service_principal.internal.app_role_ids["Query.All"]
Expand All @@ -89,7 +89,7 @@ resource "azuread_application" "example" {
}
resource "azuread_service_principal" "example" {
client_id = azuread_application.example.application_id
client_id = azuread_application.example.client_id
}
resource "azuread_app_role_assignment" "example" {
Expand Down Expand Up @@ -120,7 +120,7 @@ resource "azuread_application" "internal" {
}
resource "azuread_service_principal" "internal" {
client_id = azuread_application.internal.application_id
client_id = azuread_application.internal.client_id
}
resource "azuread_group" "example" {
Expand Down Expand Up @@ -155,7 +155,7 @@ resource "azuread_application" "internal" {
}
resource "azuread_service_principal" "internal" {
client_id = azuread_application.internal.application_id
client_id = azuread_application.internal.client_id
}
resource "azuread_group" "example" {
Expand Down
6 changes: 3 additions & 3 deletions docs/resources/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ resource "azuread_application" "example" {
requested_access_token_version = 2
known_client_applications = [
azuread_application.known1.application_id,
azuread_application.known2.application_id,
azuread_application.known1.client_id,
azuread_application.known2.client_id,
]
oauth2_permission_scope {
Expand Down Expand Up @@ -246,7 +246,7 @@ The following arguments are supported:

`api` block supports the following:

* `known_client_applications` - (Optional) A set of application IDs (client IDs), used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app.
* `known_client_applications` - (Optional) A set of client IDs, used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app.
* `mapped_claims_enabled` - (Optional) Allows an application to use claims mapping without specifying a custom signing key. Defaults to `false`.
* `oauth2_permission_scope` - (Optional) One or more `oauth2_permission_scope` blocks as documented below, to describe delegated permissions exposed by the web API represented by this application.
* `requested_access_token_version` - (Optional) The access token version expected by this resource. Must be one of `1` or `2`, and must be `2` when `sign_in_audience` is either `AzureADandPersonalMicrosoftAccount` or `PersonalMicrosoftAccount` Defaults to `1`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource "azuread_application" "example" {
}
resource "azuread_service_principal" "example" {
client_id = azuread_application.example.application_id
client_id = azuread_application.example.client_id
}
resource "azuread_service_principal_delegated_permission_grant" "example" {
Expand Down Expand Up @@ -84,7 +84,7 @@ resource "azuread_application" "example" {
}
resource "azuread_service_principal" "example" {
client_id = azuread_application.example.application_id
client_id = azuread_application.example.client_id
}
resource "azuread_user" "example" {
Expand Down

0 comments on commit 0fe9311

Please sign in to comment.