-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathoutputs.tf
47 lines (40 loc) · 1.29 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
output "display_name" {
value = azuread_service_principal.main.display_name
description = "The display name of the Azure AD application."
}
output "application_id" {
value = azuread_application.main.application_id
description = "The Application ID."
}
output "object_id" {
value = azuread_service_principal.main.id
description = "The Object ID."
}
output "tenant_id" {
value = data.azurerm_client_config.main.tenant_id
}
output "password" {
value = azuread_service_principal_password.main[0].value
sensitive = true
description = "The password for the service principal."
}
output "sdk_auth" {
value = jsonencode({
appId = azuread_application.main.application_id
password = azuread_service_principal_password.main[0].value
name = azuread_application.main.name
displayName = azuread_service_principal.main.display_name
tenant = data.azurerm_client_config.main.tenant_id
})
sensitive = true
description = "Output JSON compatible with the Azure SDK auth file."
}
output "client_id" {
value = azuread_application.main.application_id
description = "The client ID."
}
output "client_secret" {
value = azuread_service_principal_password.main[0].value
sensitive = true
description = "The client secret."
}