Skip to content

Commit

Permalink
Merge branch 'cpapke/fix-azure-for-sonar' into sonar-qa-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonar-cpapke committed Jun 3, 2024
2 parents 108abf4 + 9966b5e commit 4adc4aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/azurerm/sonar-base-instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ resource "azurerm_user_assigned_identity" "dsf_base" {
data "azurerm_subscription" "current" {}

resource "azurerm_role_assignment" "dsf_base_storage_role_assignment" {
count = var.binaries_location.az_resource_group != "" ? 1 : 0
scope = "${data.azurerm_subscription.current.id}/resourceGroups/${var.binaries_location.az_resource_group}/providers/Microsoft.Storage/storageAccounts/${var.binaries_location.az_storage_account}/blobServices/default/containers/${var.binaries_location.az_container}"
role_definition_name = "Storage Blob Data Reader"
principal_id = azurerm_user_assigned_identity.dsf_base.principal_id
Expand Down

0 comments on commit 4adc4aa

Please sign in to comment.