Skip to content

Commit

Permalink
Merge pull request #16 from PerfectThymeTech/marvinbuss/openai_roles
Browse files Browse the repository at this point in the history
Add Azure Open AI Role Assignments
  • Loading branch information
marvinbuss authored Nov 9, 2023

Verified

This commit was signed with the committer’s verified signature.
nickstenning Nick Stenning
2 parents feb865d + f99966f commit 9f2c2a0
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 9f2c2a0

Please sign in to comment.