Skip to content

Commit

Permalink
Fixed AzureAD deprecated warning (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Mar 18, 2024
1 parent c8d5af7 commit ffd62d9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,15 @@ resource "azuread_application" "default" {
}

resource "azuread_service_principal" "default" {
application_id = azuread_application.default.application_id
client_id = azuread_application.default.client_id
owners = [data.azuread_client_config.current.object_id]

app_role_assignment_required = false
}

resource "azuread_application_password" "default" {
application_object_id = azuread_application.default.object_id
end_date_relative = "8640h"
application_id = azuread_application.default.id
end_date_relative = "8640h"

rotate_when_changed = {
rotation = time_rotating.default.id
Expand Down Expand Up @@ -139,7 +142,7 @@ module "keyvault_acmebot" {
auth_settings = {
enabled = true
active_directory = {
client_id = azuread_application.default.application_id
client_id = azuread_application.default.client_id
client_secret = azuread_application_password.default.value
tenant_auth_endpoint = "https://login.microsoftonline.com/${data.azuread_client_config.current.tenant_id}/v2.0"
}
Expand All @@ -148,4 +151,4 @@ module "keyvault_acmebot" {

output "principal_id" {
value = module.keyvault_acmebot.principal_id
}
}

0 comments on commit ffd62d9

Please sign in to comment.