File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
examples/role_mapping/102-azure-openai-managed-identity Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ global_settings = {
2
+ default_region = " region1"
3
+ regions = {
4
+ region1 = " uksouth"
5
+ }
6
+ }
7
+
8
+ resource_groups = {
9
+ rg1 = {
10
+ name = " example-msi-openai-rg1"
11
+ }
12
+ }
13
+
14
+ cognitive_services_account = {
15
+ primer = {
16
+ resource_group = {
17
+ key = " rg1"
18
+ }
19
+ name = " pinecone-llm-demoopenai"
20
+ kind = " OpenAI"
21
+ sku_name = " S0"
22
+ custom_subdomain_name = " cs-alz-caf-llm-demoopenai"
23
+ }
24
+ }
25
+
26
+ managed_identities = {
27
+ workload-msi = {
28
+ name = " example-msi-openai-rolemap-msi"
29
+ resource_group_key = " rg1"
30
+ }
31
+ }
32
+
33
+ role_mapping = {
34
+ built_in_role_mapping = {
35
+ cognitive_services_account = {
36
+ primer = {
37
+ " Cognitive Services User" = {
38
+ managed_identities = {
39
+ keys = [" workload-msi" ]
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ locals {
124
124
azurerm_firewalls = local.combined_objects_azurerm_firewalls
125
125
backup_vaults = local.combined_objects_backup_vaults
126
126
batch_accounts = local.combined_objects_batch_accounts
127
+ cognitive_services_account = local.combined_objects_cognitive_services_accounts
127
128
data_factory = local.combined_objects_data_factory
128
129
databricks_workspaces = local.combined_objects_databricks_workspaces
129
130
dns_zones = local.combined_objects_dns_zones
You can’t perform that action at this time.
0 commit comments