diff --git a/IaC/ARM/v1/azuredeploy.json b/IaC/ARM/v1/azuredeploy.json index 7e69c6d..34afcc4 100644 --- a/IaC/ARM/v1/azuredeploy.json +++ b/IaC/ARM/v1/azuredeploy.json @@ -1,51 +1 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "metadata": { - "_generator": { - "name": "bicep", - "version": "0.25.53.49325", - "templateHash": "3034798151611343286" - } - }, - "parameters": { - "resourcePrefix": { - "type": "string", - "defaultValue": "b59-eus2-aichatui" - }, - "location": { - "type": "string", - "defaultValue": "[resourceGroup().location]" - }, - "azureOpenAISku": { - "type": "string", - "defaultValue": "S0" - } - }, - "variables": { - "resourceTags": { - "project": "https://github.com/build5nines/AIChatUI" - } - }, - "resources": [ - { - "type": "Microsoft.CognitiveServices/accounts", - "apiVersion": "2023-10-01-preview", - "name": "[format('{0}-oai', parameters('resourcePrefix'))]", - "location": "[parameters('location')]", - "tags": "[variables('resourceTags')]", - "kind": "OpenAI", - "sku": { - "name": "[parameters('azureOpenAISku')]" - }, - "properties": { - "networkAcls": { - "defaultAction": "Allow", - "virtualNetworkRules": [], - "ipRules": [] - }, - "publicNetworkAccess": "Enabled" - } - } - ] -} \ No newline at end of file +let's rebuild \ No newline at end of file diff --git a/IaC/ARM/v2/azuredeploy.json b/IaC/ARM/v2/azuredeploy.json index 7e51bc9..34afcc4 100644 --- a/IaC/ARM/v2/azuredeploy.json +++ b/IaC/ARM/v2/azuredeploy.json @@ -1,112 +1 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "metadata": { - "_generator": { - "name": "bicep", - "version": "0.25.53.49325", - "templateHash": "4492116795544301451" - } - }, - "parameters": { - "resourcePrefix": { - "type": "string", - "defaultValue": "b59-eus2-aichatui" - }, - "location": { - "type": "string", - "defaultValue": "[resourceGroup().location]" - }, - "azureOpenAISku": { - "type": "string", - "defaultValue": "S0" - }, - "azureSearchSku": { - "type": "string", - "defaultValue": "standard" - }, - "azureStorageSku": { - "type": "string", - "defaultValue": "Standard_LRS" - } - }, - "variables": { - "resourceTags": { - "project": "https://github.com/build5nines/AIChatUI" - }, - "resourcePrefix_for_storage": "[replace(parameters('resourcePrefix'), '-', '')]" - }, - "resources": [ - { - "type": "Microsoft.CognitiveServices/accounts", - "apiVersion": "2023-10-01-preview", - "name": "[format('{0}-oai', parameters('resourcePrefix'))]", - "location": "[parameters('location')]", - "tags": "[variables('resourceTags')]", - "kind": "OpenAI", - "sku": { - "name": "[parameters('azureOpenAISku')]" - }, - "properties": { - "networkAcls": { - "defaultAction": "Allow", - "virtualNetworkRules": [], - "ipRules": [] - }, - "publicNetworkAccess": "Enabled" - } - }, - { - "type": "Microsoft.Search/searchServices", - "apiVersion": "2023-11-01", - "name": "[format('{0}-search', parameters('resourcePrefix'))]", - "location": "[parameters('location')]", - "tags": "[variables('resourceTags')]", - "sku": { - "name": "[parameters('azureSearchSku')]" - }, - "properties": { - "replicaCount": 1, - "partitionCount": 1, - "hostingMode": "default", - "publicNetworkAccess": "enabled", - "networkRuleSet": { - "ipRules": [] - }, - "encryptionWithCmk": { - "enforcement": "Unspecified" - }, - "disableLocalAuth": false, - "authOptions": { - "apiKeyOnly": {} - }, - "semanticSearch": "disabled" - } - }, - { - "type": "Microsoft.Storage/storageAccounts", - "apiVersion": "2023-01-01", - "name": "[format('{0}sa', variables('resourcePrefix_for_storage'))]", - "location": "[parameters('location')]", - "tags": "[variables('resourceTags')]", - "sku": { - "name": "[parameters('azureStorageSku')]" - }, - "kind": "StorageV2", - "properties": { - "publicNetworkAccess": "Enabled", - "minimumTlsVersion": "TLS1_2", - "allowBlobPublicAccess": false, - "allowSharedKeyAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "accessTier": "Hot" - } - } - ] -} \ No newline at end of file +let's rebuild \ No newline at end of file diff --git a/IaC/Bicep/v2/deploy.bicep b/IaC/Bicep/v2/deploy.bicep index d747fd1..a7a6a70 100644 --- a/IaC/Bicep/v2/deploy.bicep +++ b/IaC/Bicep/v2/deploy.bicep @@ -16,6 +16,7 @@ var resourceTags = { var resourcePrefix_for_storage = replace(resourcePrefix, '-', '') + resource azureopenai 'Microsoft.CognitiveServices/accounts@2023-10-01-preview' = { name: '${resourcePrefix}-oai' location: location