Skip to content

Commit dd3b131

Browse files
committed
Update openai model + cleanup
1 parent 0c0f858 commit dd3b131

File tree

4 files changed

+5
-66
lines changed

4 files changed

+5
-66
lines changed

scenarios/AksOpenAiTerraform/terraform/main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ module "openai" {
6262
sku_name = "S0"
6363
deployments = [
6464
{
65-
name = "gpt-35-turbo"
65+
name = "gpt-4"
6666
model = {
67-
name = "gpt-35-turbo"
68-
version = "0301"
67+
name = "gpt-4"
68+
version = "turbo-2024-04-09"
6969
}
70-
rai_policy_name = ""
7170
}
7271
]
7372
custom_subdomain_name = lower("${var.name_prefix}OpenAi")
7473
public_network_access_enabled = true
74+
7575
log_analytics_workspace_id = module.log_analytics_workspace.id
7676
log_analytics_retention_days = local.log_analytics_retention_days
7777
}
@@ -122,6 +122,7 @@ module "storage_account" {
122122
account_kind = "StorageV2"
123123
account_tier = "Standard"
124124
replication_type = "LRS"
125+
is_hns_enabled = false
125126
}
126127

127128
module "key_vault" {

scenarios/AksOpenAiTerraform/terraform/modules/openai/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ variable "deployments" {
3030
name = string
3131
version = string
3232
})
33-
rai_policy_name = string
3433
}))
3534
}
3635

scenarios/AksOpenAiTerraform/terraform/modules/storage_account/main.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@ resource "azurerm_storage_account" "storage_account" {
77
account_tier = var.account_tier
88
account_replication_type = var.replication_type
99
is_hns_enabled = var.is_hns_enabled
10-
tags = var.tags
1110

1211
allow_nested_items_to_be_public = false
1312

14-
network_rules {
15-
default_action = (length(var.ip_rules) + length(var.virtual_network_subnet_ids)) > 0 ? "Deny" : var.default_action
16-
ip_rules = var.ip_rules
17-
virtual_network_subnet_ids = var.virtual_network_subnet_ids
18-
}
19-
2013
identity {
2114
type = "SystemAssigned"
2215
}
Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,27 @@
11
variable "resource_group_name" {
2-
description = "(Required) Specifies the resource group name of the storage account"
32
type = string
43
}
54

65
variable "name" {
7-
description = "(Required) Specifies the name of the storage account"
86
type = string
97
}
108

119
variable "location" {
12-
description = "(Required) Specifies the location of the storage account"
1310
type = string
1411
}
1512

1613
variable "account_kind" {
17-
description = "(Optional) Specifies the account kind of the storage account"
18-
default = "StorageV2"
1914
type = string
20-
21-
validation {
22-
condition = contains(["Storage", "StorageV2"], var.account_kind)
23-
error_message = "The account kind of the storage account is invalid."
24-
}
2515
}
2616

2717
variable "account_tier" {
28-
description = "(Optional) Specifies the account tier of the storage account"
29-
default = "Standard"
3018
type = string
31-
32-
validation {
33-
condition = contains(["Standard", "Premium"], var.account_tier)
34-
error_message = "The account tier of the storage account is invalid."
35-
}
3619
}
3720

3821
variable "replication_type" {
39-
description = "(Optional) Specifies the replication type of the storage account"
40-
default = "LRS"
4122
type = string
42-
43-
validation {
44-
condition = contains(["LRS", "ZRS", "GRS", "GZRS", "RA-GRS", "RA-GZRS"], var.replication_type)
45-
error_message = "The replication type of the storage account is invalid."
46-
}
4723
}
4824

4925
variable "is_hns_enabled" {
50-
description = "(Optional) Specifies the replication type of the storage account"
51-
default = false
5226
type = bool
53-
}
54-
55-
variable "default_action" {
56-
description = "Allow or disallow public access to all blobs or containers in the storage accounts. The default interpretation is true for this property."
57-
default = "Allow"
58-
type = string
59-
}
60-
61-
variable "ip_rules" {
62-
description = "Specifies IP rules for the storage account"
63-
default = []
64-
type = list(string)
65-
}
66-
67-
variable "virtual_network_subnet_ids" {
68-
description = "Specifies a list of resource ids for subnets"
69-
default = []
70-
type = list(string)
71-
}
72-
73-
variable "kind" {
74-
description = "(Optional) Specifies the kind of the storage account"
75-
default = ""
76-
}
77-
78-
variable "tags" {
79-
description = "(Optional) Specifies the tags of the storage account"
80-
default = {}
8127
}

0 commit comments

Comments
 (0)