Skip to content

Commit

Permalink
fix: missing role assignment on nebuly service principal
Browse files Browse the repository at this point in the history
  • Loading branch information
Telemaco019 committed Dec 12, 2024
1 parent faf065b commit fe2589e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ resource "azuread_service_principal_password" "main" {
service_principal_id = azuread_service_principal.main.id
end_date_relative = null
}
resource "azurerm_role_assignment" "nebuly_secrets_officer" {
scope = azurerm_key_vault.main.id
role_definition_name = "Key Vault Secrets Officer"
principal_id = azuread_service_principal.main.object_id
}
resource "azurerm_key_vault_secret" "azuread_application_client_id" {
key_vault_id = azurerm_key_vault.main.id
name = format("%s-azure-client-id", var.resource_prefix)
Expand Down

0 comments on commit fe2589e

Please sign in to comment.