Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSI role assignment for accessing the Azure Open AI service #1967

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
global_settings = {
default_region = "region1"
regions = {
region1 = "uksouth"
}
}

resource_groups = {
rg1 = {
name = "example-msi-openai-rg1"
}
}

cognitive_services_account = {
primer = {
resource_group = {
key = "rg1"
}
name = "pinecone-llm-demoopenai"
kind = "OpenAI"
sku_name = "S0"
custom_subdomain_name = "cs-alz-caf-llm-demoopenai"
}
}

managed_identities = {
workload-msi = {
name = "example-msi-openai-rolemap-msi"
resource_group_key = "rg1"
}
}

role_mapping = {
built_in_role_mapping = {
cognitive_services_account = {
primer = {
"Cognitive Services User" = {
managed_identities = {
keys = ["workload-msi"]
}
}
}
}
}
}
1 change: 1 addition & 0 deletions roles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ locals {
azurerm_firewalls = local.combined_objects_azurerm_firewalls
backup_vaults = local.combined_objects_backup_vaults
batch_accounts = local.combined_objects_batch_accounts
cognitive_services_account = local.combined_objects_cognitive_services_accounts
data_factory = local.combined_objects_data_factory
databricks_workspaces = local.combined_objects_databricks_workspaces
dns_zones = local.combined_objects_dns_zones
Expand Down