Skip to content

Commit

Permalink
Merge pull request #210 from kbst/azureaddepreciationfix
Browse files Browse the repository at this point in the history
Fix azuread_service_principal_password, password attribute deprecated
  • Loading branch information
pst authored Aug 23, 2021
2 parents b6a0db6 + 302c6de commit ce9be35
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions azurerm/_modules/aks/service_principal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@ resource "azuread_service_principal" "current" {
application_id = azuread_application.current[0].application_id
}

resource "random_string" "password" {
count = var.disable_managed_identities == true ? 1 : 0

length = 64
special = true
}

resource "azuread_service_principal_password" "current" {
count = var.disable_managed_identities == true ? 1 : 0

service_principal_id = azuread_service_principal.current[0].id
value = random_string.password[0].result
end_date_relative = var.service_principal_end_date_relative
}

0 comments on commit ce9be35

Please sign in to comment.