Azure AD
Creating Azure AD users with Terraform
Azure AD users can be managed with Terraform. The following is almost complete example for the key parts:
Fetch initial credentials from Terraform state
Here is a command to fetch users and their initial passwords from Terraform state with jq:
terraform show -json | jq ' .values.root_module.resources | map(select( .address |contains("azuread_user") )) | map({user_principal_name: .values.user_principal_name, password: .values.password})'
Last updated