Skip to content

Commit

Permalink
Add Azure Open AI Role Assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Nov 9, 2023
1 parent feb865d commit f99966f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/terraform/roleassignments_openai.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "azurerm_role_assignment" "uai_role_assignment_storage_blob_reader" {
count = var.open_ai_enabled ? 1 : 0

scope = azurerm_storage_account.storage.id
role_definition_name = "Storage Blob Data Reader"
principal_id = azurerm_cognitive_account.cognitive_account.identity[0].principal_id
}

0 comments on commit f99966f

Please sign in to comment.