Skip to content

Commit

Permalink
XDR-3403: Add example code for azuread-service-principal (feat)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerard Setho committed May 25, 2022
1 parent cae24b0 commit 07da8b4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/azuread-service-principal/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
terraform {
required_version = ">= 0.12.26"
required_providers {
azuread = {
source = "hashicorp/azuread"
version = "2.22.0"
}
}
}

module "azuread_app" {
source = "../../modules/azuread-application"
name = "exampleadapplication"
}

module "azuread-service-principal" {
source = "../../modules/azuread-service-principal"

application_id = module.azuread_app.application_id
}

output "password" {
value = module.azuread-service-principal.password
sensitive = true
}

output "key_id" {
value = module.azuread-service-principal.password_key_id
}

0 comments on commit 07da8b4

Please sign in to comment.